Expose settings in virtual table for CASSANDRA-14573 - #242
Conversation
ade798f to
a4463e7
Compare
There was a problem hiding this comment.
Not that I mind the change, but it isn't necessary for this patch, and there is metadata() if it were.
There was a problem hiding this comment.
A lot of unused imports here.
There was a problem hiding this comment.
Doesn't really need to be static. Can also be a map of name -> Field, so that data(DecoratedKey partitionKey) is cleaner.
There was a problem hiding this comment.
Doesn't handle array values like the other data() implementation.
There was a problem hiding this comment.
Should probably factor out this whole block into a method usable by both data() implementations. String fieldValue(Field field, Config config)?
There was a problem hiding this comment.
Wrong import order. See https://wiki.apache.org/cassandra/CodeStyle
There was a problem hiding this comment.
Is this the toString() implementation we want? Like the other three, it's missing fields, intentionally or not (if intentionally, maybe comment why so?). Also, this string helper prefixes the map with the class name, and it doesn't look pretty in CQL output, subjectively.
There was a problem hiding this comment.
It's not invalid to query a table for a non-existent partition key, you just return an empty data set in CQL.
…oken metadata) (apache#242) Introduced TokenMetadataProvider to abstract access to TokenMetadata and make it pluggable.
…oken metadata) (apache#242) Introduced TokenMetadataProvider to abstract access to TokenMetadata and make it pluggable. (cherry picked from commit 8c0a970)
…oken metadata) (apache#242) Introduced TokenMetadataProvider to abstract access to TokenMetadata and make it pluggable. (cherry picked from commit 8c0a970) (cherry picked from commit 58b15c2)
…oken metadata) (apache#242) Introduced TokenMetadataProvider to abstract access to TokenMetadata and make it pluggable. (cherry picked from commit 8c0a970) (cherry picked from commit 58b15c2) (cherry picked from commit 1b2034e)
…oken metadata) (apache#242) Introduced TokenMetadataProvider to abstract access to TokenMetadata and make it pluggable. (cherry picked from commit 8c0a970) (cherry picked from commit 58b15c2) (cherry picked from commit 1b2034e) (cherry picked from commit b24d83f) (cherry picked from commit 19e5337)
…oken metadata) (apache#242) Introduced TokenMetadataProvider to abstract access to TokenMetadata and make it pluggable. (cherry picked from commit 8c0a970) (cherry picked from commit 58b15c2) (cherry picked from commit 1b2034e) (cherry picked from commit b24d83f) (cherry picked from commit 19e5337) (cherry picked from commit a790c81) STAR-789 Fix order of CUSTOM_TMD_PROVIDER_PROPERTY in CassandraRelevantProperties
…oken metadata) (apache#242) Introduced TokenMetadataProvider to abstract access to TokenMetadata and make it pluggable. (cherry picked from commit 8c0a970) (cherry picked from commit 58b15c2) (cherry picked from commit 1b2034e) (cherry picked from commit b24d83f) (cherry picked from commit 19e5337) (cherry picked from commit a790c81) STAR-789 Fix order of CUSTOM_TMD_PROVIDER_PROPERTY in CassandraRelevantProperties
…oken metadata) (apache#242) Introduced TokenMetadataProvider to abstract access to TokenMetadata and make it pluggable. (cherry picked from commit 8c0a970) (cherry picked from commit 58b15c2) (cherry picked from commit 1b2034e) (cherry picked from commit b24d83f) (cherry picked from commit 19e5337) (cherry picked from commit a790c81) STAR-789 Fix order of CUSTOM_TMD_PROVIDER_PROPERTY in CassandraRelevantProperties (Rebase of commit c698031)
No description provided.