Skip to content
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

sink connector cannot insert data into table named transaction #413

Closed
svyatalive opened this issue Dec 11, 2023 · 2 comments · Fixed by #414
Closed

sink connector cannot insert data into table named transaction #413

svyatalive opened this issue Dec 11, 2023 · 2 comments · Fixed by #414
Labels
bug Something isn't working GA-1 All the issues that are issues in release(Scheduled Dec 2023) high-priority qa-verified label to mark issues that were verified by QA

Comments

@svyatalive
Copy link

svyatalive commented Dec 11, 2023

The connector creates a table, but cannot insert data into it. Is it possible to set a different name for the target table?

4060 2023-12-11 18:11:35.972 [pool-1-thread-9] WARN com.clickhouse.jdbc.parser.ClickHouseSqlParser  - Parse error at line 1, column 13.  Encountered: transaction. If you believe the SQL is valid, please feel free to open an issue on Github with this warning and the following SQL attached.
insert into transaction(`id`,`date_created`,`date_updated`,`_sign`,`_version`) 
select `id`,`date_created`,`date_updated`,`_sign`,`_version`
from input('`id` Int32,`date_created` String,`date_updated` String,`_sign` Int8,`_version` UInt64')

sink-connector-lightweight used
Thanks!

@aadant
Copy link
Collaborator

aadant commented Dec 12, 2023

@subkanthi the fix is simple, just escape the table name :-)

@aadant aadant added high-priority bug Something isn't working labels Dec 13, 2023
@subkanthi subkanthi added the GA-1 All the issues that are issues in release(Scheduled Dec 2023) label Dec 18, 2023
@Selfeer Selfeer added the qa-verified label to mark issues that were verified by QA label Feb 2, 2024
@Selfeer
Copy link
Collaborator

Selfeer commented Feb 2, 2024

The issue was verified by the Altinity QA team and marked as qa-verified.

Build used for testing: altinityinfra/clickhouse-sink-connector:443-ea823c59644963cf752acef3987701a134cb6906-lt

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug Something isn't working GA-1 All the issues that are issues in release(Scheduled Dec 2023) high-priority qa-verified label to mark issues that were verified by QA
Projects
None yet
Development

Successfully merging a pull request may close this issue.

4 participants