The entire database is synchronized with CDC, and the table is created after execution. Tip: Execute statement types are not included: INSERT, SELECT, WITH, SHOW, DESCRIBE, DESC, CTAS #3764
Labels
Bug
Something isn't working
Search before asking
What happened
提示 不包含可执行的语句类型: INSERT,SELECT,WITH,SHOW,DESCRIBE,DESC,CTAS
What you expected to happen
异常提示:
org.dinky.data.exception.BusException: 不包含可执行的语句类型: INSERT,SELECT,WITH,SHOW,DESCRIBE,DESC,CTAS
at org.dinky.job.builder.JobTransBuilder.run(JobTransBuilder.java:73) ~[classes/:?]
at org.dinky.job.JobManager.executeSql(JobManager.java:299) ~[classes/:?]
at org.dinky.service.task.FlinkSqlTask.execute(FlinkSqlTask.java:68) ~[classes/:?]
at org.dinky.service.impl.TaskServiceImpl.executeJob(TaskServiceImpl.java:202) ~[classes/:?]
at org.dinky.service.impl.TaskServiceImpl$$FastClassBySpringCGLIB$$22087f7c.invoke() ~[classes/:?]
How to reproduce
配置如下:
EXECUTE CDCSOURCE cdc_mysql WITH (
'connector' = 'mysql-cdc',
'hostname' = '127.0.0.1',
'port' = '3306',
'username' = 'dinky',
'password' = 'dinky',
'checkpoint' = '3000',
'scan.startup.mode' = 'initial',
'parallelism' = '1',
'table-name' = 'dinky.dinky_sys_operate_log,dinky.dinky_sys_config',
'sink.connector' = 'jdbc',
'sink.url' = 'jdbc:mysql://127.0.0.1:3306/test?characterEncoding=utf-8&useSSL=false',
'sink.username' = 'test',
'sink.password' = 'test123',
'sink.sink.db' = 'test',
'sink.table.prefix' = 'test_',
'sink.table.lower' = 'true',
'sink.table-name' = '#{tableName}',
'sink.driver' = 'com.mysql.jdbc.Driver',
'sink.sink.buffer-flush.interval' = '2s',
'sink.sink.buffer-flush.max-rows' = '100',
'sink.sink.max-retries' = '5',
'sink.auto.create' = 'true'
)
Anything else
No response
Version
dev
Are you willing to submit PR?
Code of Conduct
The text was updated successfully, but these errors were encountered: