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

result: add "Custom" metadata type #368

Closed
wants to merge 1 commit into from
Closed

result: add "Custom" metadata type #368

wants to merge 1 commit into from

Conversation

psarna
Copy link
Contributor

@psarna psarna commented Dec 24, 2021

CQL protocol allows sending custom types identified by their
string representation. One of the cases in which the trick is used
is when Cassandra returns duration columns to a CQLv4 client, which
is not supposed to know this type.

Refs #364

Pre-review checklist

  • I have split my patch into logically separate commits.
  • All commit messages clearly explain what they change and why.
  • I added relevant tests for new features and bug fixes.
  • All commits compile, pass static checks and pass test.
  • PR description sums up the changes and reasons why they should be introduced.
  • I added appropriate Fixes: annotations to PR description.

CQL protocol allows sending custom types identified by their
string representation. One of the cases in which the trick is used
is when Cassandra returns duration columns to a CQLv4 client, which
is not supposed to know this type.

WIP: the actual implementation will be done once #363 is merged.

Refs #364
@psarna psarna force-pushed the custom_cql_types branch from 4398cd3 to ad8b0c1 Compare March 17, 2022 08:37
@psarna psarna marked this pull request as ready for review March 17, 2022 08:37
@psarna psarna requested a review from piodul March 17, 2022 08:37
Copy link
Collaborator

@piodul piodul left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Looks good, although IMO the title add support for custom CQL type suggests too much - as if this commit allows to read and write values of custom type. Meanwhile, it only parses the "custom" type from result metadata and reading/writing custom type values is still not supported.

Please change the description to better reflect the actual change. Moreover, if you intended to remove the WIP line from the PR description, then please remove it from the commit description, too.

@psarna psarna changed the title result: add support for custom CQL types result: add "Custom" metadata type Mar 17, 2022
@psarna
Copy link
Contributor Author

psarna commented Mar 17, 2022

thx, done

@piodul
Copy link
Collaborator

piodul commented Mar 17, 2022

It looks like the commit still has the wrong description :(

@piodul piodul closed this in 2cf503b Mar 17, 2022
@piodul
Copy link
Collaborator

piodul commented Mar 17, 2022

Committed in 2cf503b. Fixed the commit message manually before pushing.

@Lorak-mmk Lorak-mmk deleted the custom_cql_types branch October 12, 2023 13:34
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants