Correct decoding for Trino UUID partition key value#10856
Correct decoding for Trino UUID partition key value#10856ebyhr merged 2 commits intotrinodb:masterfrom
Conversation
There was a problem hiding this comment.
I've skipped (in this initial commit) on purpose adding the typedecimal field to the composed primary key because the test is failing. Apparently in Cassandra 2.2 when comparing 128.0 with 128 there is no match found.
There was a problem hiding this comment.
Could you file an issue and leave as code comment?
There was a problem hiding this comment.
I created #10927 and referenced it in the new test.
There was a problem hiding this comment.
TestCassandraConnectorTest tests on Cassandra 2.2.
However the code has the following logic
for retrieving the partitions.
Any advice on how could we cover the usecase of dealing with Cassandra 2.2+ ?
There was a problem hiding this comment.
Not sure if I understood your question correctly, but the image name 2.2 gets the latest 2.2.x (=2.2.19 today). The comparison (2.2.19 compareTo 2.2 > 0) will return true.
There was a problem hiding this comment.
Sorry for the confusion.
I was wondering how do we get to test the else branch.
log.debug("Using combination of partition values to fetch partitions.");
rows = queryPartitionKeysLegacyWithMultipleQueries(table, filterPrefixes);
There was a problem hiding this comment.
We can get the coverage by running tests on Cassandra 2.1. It will require some refactoring of tests though.
There was a problem hiding this comment.
We can get the coverage by running tests on Cassandra 2.1. It will require some refactoring of tests though.
3b5a836 to
b73fc77
Compare
|
Merged, thanks! |
|
Awesome @findinpath @ebyhr Thanks! |
Fixes #10799