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
d75b0cc1
Commit
d75b0cc1
authored
May 06, 2020
by
赵建伟
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
update codes
parent
12f7e5f4
Hide whitespace changes
Inline
Side-by-side
Showing
4 changed files
with
3 additions
and
4 deletions
+3
-4
workspace.xml
.idea/workspace.xml
+1
-1
workspace.xml
lib/java/bi-report-service/.idea/workspace.xml
+1
-1
HivesqlServiceImpl.java
.../data/gateway/server/service/impl/HivesqlServiceImpl.java
+1
-0
exec_sql.sql
sqls/hive_insert/exec_sql.sql
+0
-2
No files found.
.idea/workspace.xml
View file @
d75b0cc1
...
@@ -123,7 +123,7 @@
...
@@ -123,7 +123,7 @@
<workItem
from=
"1588154352798"
duration=
"195000"
/>
<workItem
from=
"1588154352798"
duration=
"195000"
/>
<workItem
from=
"1588220085338"
duration=
"7993000"
/>
<workItem
from=
"1588220085338"
duration=
"7993000"
/>
<workItem
from=
"1588248522289"
duration=
"2820000"
/>
<workItem
from=
"1588248522289"
duration=
"2820000"
/>
<workItem
from=
"1588344251422"
duration=
"
19665
000"
/>
<workItem
from=
"1588344251422"
duration=
"
20092
000"
/>
</task>
</task>
<task
id=
"LOCAL-00001"
summary=
"add init codes."
>
<task
id=
"LOCAL-00001"
summary=
"add init codes."
>
<created>
1587723565207
</created>
<created>
1587723565207
</created>
...
...
lib/java/bi-report-service/.idea/workspace.xml
View file @
d75b0cc1
...
@@ -217,7 +217,7 @@
...
@@ -217,7 +217,7 @@
<workItem
from=
"1588148891822"
duration=
"2318000"
/>
<workItem
from=
"1588148891822"
duration=
"2318000"
/>
<workItem
from=
"1588152718016"
duration=
"1463000"
/>
<workItem
from=
"1588152718016"
duration=
"1463000"
/>
<workItem
from=
"1588154601852"
duration=
"28557000"
/>
<workItem
from=
"1588154601852"
duration=
"28557000"
/>
<workItem
from=
"1588344252163"
duration=
"1
4591
000"
/>
<workItem
from=
"1588344252163"
duration=
"1
5018
000"
/>
</task>
</task>
<servers
/>
<servers
/>
</component>
</component>
...
...
lib/java/bi-report-service/service-server/src/main/java/com/gmei/data/gateway/server/service/impl/HivesqlServiceImpl.java
View file @
d75b0cc1
...
@@ -64,6 +64,7 @@ public class HivesqlServiceImpl implements HivesqlService {
...
@@ -64,6 +64,7 @@ public class HivesqlServiceImpl implements HivesqlService {
try
{
try
{
conn
=
DriverManager
.
getConnection
(
hiveSqlJdbcUrl
,
"bi"
,
""
);
conn
=
DriverManager
.
getConnection
(
hiveSqlJdbcUrl
,
"bi"
,
""
);
Statement
statement
=
conn
.
createStatement
();
Statement
statement
=
conn
.
createStatement
();
statement
.
executeUpdate
(
"set role admin"
);
int
updateCount
=
statement
.
executeUpdate
(
hql
);
int
updateCount
=
statement
.
executeUpdate
(
hql
);
if
(
updateCount
>
0
){
if
(
updateCount
>
0
){
logger
.
info
(
"*** Execute success, hql: {}"
,
hql
);
logger
.
info
(
"*** Execute success, hql: {}"
,
hql
);
...
...
sqls/hive_insert/exec_sql.sql
View file @
d75b0cc1
set
role
admin
;
INSERT
INTO
TABLE
pm
.
tl_pm_zjw
select
*
from
offline
.
tmp_zhx_20191227
where
time
=
'AI'
;
INSERT
INTO
TABLE
pm
.
tl_pm_zjw
select
*
from
offline
.
tmp_zhx_20191227
where
time
=
'AI'
;
\ No newline at end of file
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