Skip to content

Conversation

@joao-r-reis
Copy link
Contributor

@joao-r-reis joao-r-reis commented Jul 1, 2025

Updates example and test code according to changes in 2.0.0 release (mostly deprecations).

Also adds examples for new 2.0 features.

@joao-r-reis joao-r-reis changed the title CASSGO-80 Update examples for 2.0 [WIP] CASSGO-80 Update examples for 2.0 Jul 3, 2025
@joao-r-reis joao-r-reis force-pushed the examples branch 2 times, most recently from d36c3e8 to 22c91cb Compare July 15, 2025 17:19
@joao-r-reis joao-r-reis changed the title [WIP] CASSGO-80 Update examples for 2.0 CASSGO-80 Update examples for 2.0 Jul 15, 2025
@joao-r-reis joao-r-reis changed the title CASSGO-80 Update examples for 2.0 CASSGO-80 Update example and test code for 2.0 Jul 15, 2025
@lukasz-antoniak
Copy link
Member

Shall we also add an example for types registration (like here)?

@joao-r-reis
Copy link
Contributor Author

Shall we also add an example for types registration (like here)?

The current state of that feature is probably only useful for users that are using a different DB other than Cassandra like yugabyte. That example is for a yugabyte type that Cassandra itself doesn't support. Eventually we should add proper custom and udt type support to this API and at that point I think it will become useful to the common user and at that point I think it definitely deserves an example. As it stands I don't even have a way to verify that the jsonb example works because it requires a yugabyte db so I'd say we don't add one for now.

@lukasz-antoniak
Copy link
Member

LGTM

@lukasz-antoniak lukasz-antoniak self-requested a review September 5, 2025 13:27
Copy link
Contributor

@worryg0d worryg0d left a comment

Choose a reason for hiding this comment

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

LGTM. Left a little nit.

This patch updates the existing examples and tests according to the 2.0 changes (mostly deprecations) and adds new examples for new features added in 2.0.

Patch by João Reis; reviewed by Bohdan Siryk and Lukasz Antoniak for CASSGO-80
@joao-r-reis joao-r-reis merged commit 5fd2cdf into apache:trunk Oct 3, 2025
142 of 144 checks passed
@joao-r-reis joao-r-reis deleted the examples branch October 3, 2025 11:56
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.

3 participants