We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
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
https://github.com/Altinity/clickhouse-sink-connector/blob/develop/sink-connector/src/main/java/com/altinity/clickhouse/sink/connector/db/batch/PreparedStatementExecutor.java#L334
ps.setLong(columnNameToIndexMap.get(versionColumn), record.getSequenceNumber());
this always sets the value to -1
so the version in clickhouse is always the same ( 18446744073709551615 ):
ch-1S_1K :) select _version from test limit 10; SELECT _version FROM test LIMIT 10 Query id: 477120a0-fc78-43bc-b713-3a85f0ba291b ┌─────────────_version─┐ 1. │ 18446744073709551615 │ 2. │ 18446744073709551615 │ 3. │ 18446744073709551615 │ 4. │ 18446744073709551615 │ 5. │ 18446744073709551615 │ 6. │ 18446744073709551615 │ 7. │ 18446744073709551615 │ 8. │ 18446744073709551615 │ 9. │ 18446744073709551615 │ 10. │ 18446744073709551615 │ └──────────────────────┘ 10 rows in set. Elapsed: 0.002 sec.
==>
ch-1S_1K :) select CAST(-1, 'UInt64'); SELECT CAST(-1, 'UInt64') Query id: bb3c5db5-c027-4110-9cd7-5d740f57cfd2 ┌───CAST(-1, 'UInt64')─┐ 1. │ 18446744073709551615 │ -- 18.45 quintillion └──────────────────────┘ 1 row in set. Elapsed: 0.001 sec.
so need use LSN
The text was updated successfully, but these errors were encountered:
Update PreparedStatementExecutor.java: fix updates
053cc33
closes Altinity#899
Successfully merging a pull request may close this issue.
https://github.com/Altinity/clickhouse-sink-connector/blob/develop/sink-connector/src/main/java/com/altinity/clickhouse/sink/connector/db/batch/PreparedStatementExecutor.java#L334
this always sets the value to -1
so the version in clickhouse is always the same ( 18446744073709551615 ):
==>
so need use LSN
The text was updated successfully, but these errors were encountered: