Skip to content
Projects
Groups
Snippets
Help
Loading...
Sign in
Toggle navigation
B
bi-report
Project
Project
Details
Activity
Cycle Analytics
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Charts
Issues
0
Issues
0
List
Board
Labels
Milestones
Merge Requests
0
Merge Requests
0
CI / CD
CI / CD
Pipelines
Jobs
Schedules
Charts
Wiki
Wiki
Snippets
Snippets
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Charts
Create a new issue
Jobs
Commits
Issue Boards
Open sidebar
data
bi-report
Commits
125f225d
Commit
125f225d
authored
Apr 30, 2020
by
赵建伟
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
update codes
parent
a48df6b8
Show whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
1 addition
and
4 deletions
+1
-4
workspace.xml
lib/java/bi-report-service/.idea/workspace.xml
+1
-1
SparksqlServiceImpl.java
...data/gateway/server/service/impl/SparksqlServiceImpl.java
+0
-3
No files found.
lib/java/bi-report-service/.idea/workspace.xml
View file @
125f225d
...
@@ -215,7 +215,7 @@
...
@@ -215,7 +215,7 @@
<workItem
from=
"1584945647680"
duration=
"4469000"
/>
<workItem
from=
"1584945647680"
duration=
"4469000"
/>
<workItem
from=
"1588148891822"
duration=
"2318000"
/>
<workItem
from=
"1588148891822"
duration=
"2318000"
/>
<workItem
from=
"1588152718016"
duration=
"1463000"
/>
<workItem
from=
"1588152718016"
duration=
"1463000"
/>
<workItem
from=
"1588154601852"
duration=
"2
375
0000"
/>
<workItem
from=
"1588154601852"
duration=
"2
402
0000"
/>
</task>
</task>
<servers
/>
<servers
/>
</component>
</component>
...
...
lib/java/bi-report-service/service-server/src/main/java/com/gmei/data/gateway/server/service/impl/SparksqlServiceImpl.java
View file @
125f225d
...
@@ -70,18 +70,15 @@ public class SparksqlServiceImpl implements SparksqlService {
...
@@ -70,18 +70,15 @@ public class SparksqlServiceImpl implements SparksqlService {
}
}
}
}
String
hql
=
sbf
.
toString
();
String
hql
=
sbf
.
toString
();
Connection
conn
=
null
;
Connection
conn
=
null
;
try
{
try
{
conn
=
DriverManager
.
getConnection
(
sparksqlJdbcUrl
,
"data"
,
""
);
conn
=
DriverManager
.
getConnection
(
sparksqlJdbcUrl
,
"data"
,
""
);
Statement
statement
=
conn
.
createStatement
();
Statement
statement
=
conn
.
createStatement
();
//Statement statement = conn.createStatement(ResultSet.TYPE_FORWARD_ONLY,ResultSet.CONCUR_READ_ONLY);
ResultSet
rs
=
statement
.
executeQuery
(
hql
);
ResultSet
rs
=
statement
.
executeQuery
(
hql
);
ResultSetMetaData
metaData
=
rs
.
getMetaData
();
ResultSetMetaData
metaData
=
rs
.
getMetaData
();
int
columnCount
=
metaData
.
getColumnCount
();
int
columnCount
=
metaData
.
getColumnCount
();
for
(
int
i
=
1
;
i
<=
columnCount
;
i
++){
for
(
int
i
=
1
;
i
<=
columnCount
;
i
++){
String
columnName
=
metaData
.
getColumnName
(
i
);
String
columnName
=
metaData
.
getColumnName
(
i
);
//String catalogName = metaData.getCatalogName(i);
headers
.
add
(
columnName
);
headers
.
add
(
columnName
);
}
}
while
(
rs
.
next
()){
while
(
rs
.
next
()){
...
...
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment