Skip to content
Projects
Groups
Snippets
Help
Loading...
Help
Contribute to GitLab
Sign in
Toggle navigation
F
flink-sql-gateway-task
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
Registry
Registry
Wiki
Wiki
Snippets
Snippets
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Charts
Create a new issue
Jobs
Commits
Issue Boards
Open sidebar
xiebaofa
flink-sql-gateway-task
Commits
00811e7b
Commit
00811e7b
authored
May 14, 2021
by
xiebaofa
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
修改字段类型
parent
0b18d42d
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
3 additions
and
3 deletions
+3
-3
ReturnPayKafkaBinlogToHBase.java
...ain/java/com/miya/huawei/ReturnPayKafkaBinlogToHBase.java
+3
-3
No files found.
src/main/java/com/miya/huawei/ReturnPayKafkaBinlogToHBase.java
View file @
00811e7b
...
@@ -18,7 +18,7 @@ public class ReturnPayKafkaBinlogToHBase {
...
@@ -18,7 +18,7 @@ public class ReturnPayKafkaBinlogToHBase {
"status STRING ,\n"
+
"status STRING ,\n"
+
"trad_desc STRING ,\n"
+
"trad_desc STRING ,\n"
+
"date STRING ,\n"
+
"date STRING ,\n"
+
"miyadate
DATETIME
,\n"
+
"miyadate
STRING
,\n"
+
"retotal_fee STRING ,\n"
+
"retotal_fee STRING ,\n"
+
"cashier STRING ,\n"
+
"cashier STRING ,\n"
+
"posbatch STRING ,\n"
+
"posbatch STRING ,\n"
+
...
@@ -59,7 +59,7 @@ public class ReturnPayKafkaBinlogToHBase {
...
@@ -59,7 +59,7 @@ public class ReturnPayKafkaBinlogToHBase {
" status STRING ,\n"
+
" status STRING ,\n"
+
" trad_desc STRING ,\n"
+
" trad_desc STRING ,\n"
+
" date STRING ,\n"
+
" date STRING ,\n"
+
" miyadate
DATETIME
,\n"
+
" miyadate
STRING
,\n"
+
" retotal_fee STRING ,\n"
+
" retotal_fee STRING ,\n"
+
" cashier STRING ,\n"
+
" cashier STRING ,\n"
+
" posbatch STRING ,\n"
+
" posbatch STRING ,\n"
+
...
@@ -87,7 +87,7 @@ public class ReturnPayKafkaBinlogToHBase {
...
@@ -87,7 +87,7 @@ public class ReturnPayKafkaBinlogToHBase {
private
static
final
String
CREATE_JOB_SQL
=
"INSERT INTO huawei_hbase_sink_table\n"
+
private
static
final
String
CREATE_JOB_SQL
=
"INSERT INTO huawei_hbase_sink_table\n"
+
"SELECT "
+
"SELECT "
+
" CONCAT( CAST( (MOD(CAST(DATE_FORMAT(`date`,'yyyyMMdd') AS INT),10)) AS STRING ) , '~' , DATE_FORMAT(`date`,'yyyyMMdd'),'~' ,trade_no) ,"
+
" CONCAT( CAST( (MOD(CAST(DATE_FORMAT(`date`,'yyyyMMdd') AS INT),10)) AS STRING ) , '~' , DATE_FORMAT(`date`,'yyyyMMdd'),'~' ,trade_no) ,"
+
"
ROW("
+
" ROW("
+
"saasid ,\n"
+
"saasid ,\n"
+
"marketid ,\n"
+
"marketid ,\n"
+
"operator_id ,\n"
+
"operator_id ,\n"
+
...
...
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