Skip to content

CASSANALYTICS-51 : Support for Tuples, Tuples with collections and UDTs in the Bulk writer#174

Open
skoppu22 wants to merge 6 commits intoapache:trunkfrom
skoppu22:tuples
Open

CASSANALYTICS-51 : Support for Tuples, Tuples with collections and UDTs in the Bulk writer#174
skoppu22 wants to merge 6 commits intoapache:trunkfrom
skoppu22:tuples

Conversation

@skoppu22
Copy link
Contributor

Adding support for writing Tuples and Tuples with collections or UDTs (and possible combinations of these) in the Bulk writer.

CI pipeline:
https://app.circleci.com/pipelines/github/skoppu22/cassandra-analytics/53/workflows/03dd1ed4-6506-462b-9363-bafb27e9a4fb

{
String sanitizedName = sanitizeTypeName(type.cqlName());

try
Copy link
Member

Choose a reason for hiding this comment

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

NIT: utility method would save space on repeated try-catch blocks.

* @param type the type to unwrap
* @return the inner type if frozen, otherwise the original type
*/
public static CqlField.CqlType unwrapFrozen(CqlField.CqlType type)
Copy link
Member

Choose a reason for hiding this comment

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

NIT: unwrapIfFrozen sounds better.

Copy link
Member

@lukasz-antoniak lukasz-antoniak left a comment

Choose a reason for hiding this comment

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

Thank you for a great patch. Two small NITs.

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