-
Notifications
You must be signed in to change notification settings - Fork 1.9k
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
[Bug] [Connector-V2] StarRocks Auto Create Table parse failed. #5071
Comments
aijing-sun
changed the title
[Bug] [Module Name] Bug title
[Bug] [Connector-V2] StarRocks Auto Create Table parse failed.
Jul 13, 2023
This issue has been automatically marked as stale because it has not had recent activity for 30 days. It will be closed in next 7 days if no further activity occurs. |
5 tasks
This issue has been closed because it has not received response for too long time. You could reopen it if you encountered similar problems in the future. |
Zhouwen-CN
pushed a commit
to Zhouwen-CN/seatunnel
that referenced
this issue
Sep 11, 2023
…pache#5071 (apache#5332) * [Hotfix][Connector-V2][StarRocks] fix starrocks template sql parser offset && add primary key for default template
Zhouwen-CN
pushed a commit
to Zhouwen-CN/seatunnel
that referenced
this issue
Sep 11, 2023
…pache#5071 (apache#5332) * [Hotfix][Connector-V2][StarRocks] fix starrocks template sql parser offset && add primary key for default template
Zhouwen-CN
pushed a commit
to Zhouwen-CN/seatunnel
that referenced
this issue
Sep 11, 2023
…pache#5071 (apache#5332) * [Hotfix][Connector-V2][StarRocks] fix starrocks template sql parser offset && add primary key for default template
gnehil
pushed a commit
to gnehil/seatunnel
that referenced
this issue
Oct 12, 2023
…pache#5071 (apache#5332) * [Hotfix][Connector-V2][StarRocks] fix starrocks template sql parser offset && add primary key for default template
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Search before asking
What happened
When I run test sync job "mysql-cdc -> starrocks", with the usage of starrocks savemode, the save_mode_create_template parser went wrong.
After debug, I find that the method org.apache.seatunnel.connectors.seatunnel.starrocks.sink.StarRocksSaveModeUtil#mergeColumnInTemplate mess up the sequence of startIndex in columnInTemplate since it's a hashmap. As a consequence, the parsed create sql went wrong.
One solution could be sorting columnInTemplate values by startIndex before the for-loop.
SeaTunnel Version
2.3.2
SeaTunnel Config
Running Command
Error Exception
Flink or Spark Version
None
Java or Scala Version
jdk 1.8
Screenshots
Are you willing to submit PR?
Code of Conduct
The text was updated successfully, but these errors were encountered: