Skip to content

Conversation

@priyanshu-ctds
Copy link
Collaborator

@priyanshu-ctds priyanshu-ctds self-assigned this Dec 18, 2025
@priyanshu-ctds priyanshu-ctds changed the title STREAM-770 Added support for tuple datatype STREAM-770: Added support for tuple datatype Dec 18, 2025
@priyanshu-ctds priyanshu-ctds requested a review from dlg99 December 19, 2025 15:26
// any field to non-null value will cause the udt column itself to be null in the C* table
UdtValue zudtOptionalValues = zudt.newValue(dataSpecMap.get("text").cqlValue);

TupleType tupleType = DataTypes.tupleOf(DataTypes.INT, DataTypes.TEXT);
Copy link
Member

Choose a reason for hiding this comment

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

Will you please able to add a complex test case of a CQL column of type map<text, frozen<tuple<text, text, bigint, double, text>>> in addition to the simple tuple type here?

int idx = Integer.parseInt(fieldName.substring("index_".length()));
if (idx == 0) {
Assert.assertEquals(dataSpecMap.get("int").avroValue, value);
} else if (idx == 1) {
Copy link
Member

Choose a reason for hiding this comment

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

I don't understand this fully, so please bear with my limited knowledge here. Are we stopping just at the 2nd field? What if the tuple field has more than 2 fileds?

Copy link

@dlg99 dlg99 left a comment

Choose a reason for hiding this comment

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

LGTM

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.

5 participants