-
Notifications
You must be signed in to change notification settings - Fork 590
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
fix(sink): fix sink in to Cassandra failed when using column name containing upper case letter #17493
Conversation
Can you help add some test to cover this case? |
e4143c8
to
a00f692
Compare
7693be2
to
acf7086
Compare
acf7086
to
ef1cf1a
Compare
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Do we have a schema check phase during sink creation stage? Such column mismatch issues could have been caught before any insert/update/delete entries actually come.
...tor-node/risingwave-sink-cassandra/src/main/java/com/risingwave/connector/CassandraSink.java
Show resolved
Hide resolved
We have checked, and the reason for this bug is that the Rw and Cassandra names are completely consistent, but our CQL statement concatenation is incorrect |
53393b8
to
3e570d8
Compare
3e570d8
to
b5cfeb7
Compare
ee5f887
to
887a6c5
Compare
fix fix
887a6c5
to
ef71d85
Compare
if cat ./query_result2.csv | awk -F "," '{ | ||
exit !($1 == 1 && $2 == 1 && $3 == "1\r"); }'; then | ||
echo "Cassandra sink check passed" | ||
else | ||
echo "The output is not as expected." | ||
echo "output:" | ||
cat ./query_result2.csv | ||
exit 1 | ||
fi |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
nit: I think we can also put the validation logic in cassandra_sink.slt
using system
command
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
okk
…taining upper case letter (#17493)
…taining upper case letter (#17493) (#18126) Co-authored-by: Xinhao Xu <[email protected]>
…taining upper case letter (#17493)
I hereby agree to the terms of the RisingWave Labs, Inc. Contributor License Agreement.
What's changed and what's your intention?
#17490
#17855
Checklist
./risedev check
(or alias,./risedev c
)Documentation
Release note
If this PR includes changes that directly affect users or other significant modifications relevant to the community, kindly draft a release note to provide a concise summary of these changes. Please prioritize highlighting the impact these changes will have on users.