-
Notifications
You must be signed in to change notification settings - Fork 26
STREAM-770: Added support for tuple datatype #217
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
base: master
Are you sure you want to change the base?
Conversation
connector/src/main/java/com/datastax/oss/pulsar/source/converters/AbstractNativeConverter.java
Outdated
Show resolved
Hide resolved
connector/src/test/java/com/datastax/oss/pulsar/source/PulsarCassandraSourceTests.java
Outdated
Show resolved
Hide resolved
connector/src/main/java/com/datastax/oss/pulsar/source/converters/AbstractNativeConverter.java
Outdated
Show resolved
Hide resolved
connector/src/main/java/com/datastax/oss/pulsar/source/converters/AbstractNativeConverter.java
Outdated
Show resolved
Hide resolved
connector/src/main/java/com/datastax/oss/pulsar/source/converters/AbstractNativeConverter.java
Outdated
Show resolved
Hide resolved
connector/src/main/java/com/datastax/oss/pulsar/source/converters/AbstractNativeConverter.java
Outdated
Show resolved
Hide resolved
connector/src/main/java/com/datastax/oss/pulsar/source/converters/AbstractNativeConverter.java
Outdated
Show resolved
Hide resolved
connector/src/main/java/com/datastax/oss/pulsar/source/converters/NativeAvroConverter.java
Outdated
Show resolved
Hide resolved
| // 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); |
There was a problem hiding this comment.
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) { |
There was a problem hiding this comment.
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?
dlg99
left a comment
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
LGTM
https://datastax.jira.com/browse/STREAM-770