Abacn commented on code in PR #38206:
URL: https://github.com/apache/beam/pull/38206#discussion_r3101015138
##########
sdks/java/extensions/sql/src/test/java/org/apache/beam/sdk/extensions/sql/impl/utils/CalciteUtilsTest.java:
##########
@@ -178,4 +178,23 @@ public void testFieldTypeNotFound() {
thrown.expectMessage("Cannot find a matching Beam FieldType for Calcite
type: UNKNOWN");
CalciteUtils.toFieldType(relDataType);
}
+
+ @Test
+ public void testToRelDataTypeWithRowBackedLogicalType() {
+ Schema nestedSchema = Schema.builder().addField("nested_f1",
Schema.FieldType.INT32).build();
+ Schema.FieldType rowType = Schema.FieldType.row(nestedSchema);
+
+ Schema.LogicalType<org.apache.beam.sdk.values.Row,
org.apache.beam.sdk.values.Row> logicalType =
+ new org.apache.beam.sdk.schemas.logicaltypes.PassThroughLogicalType<
Review Comment:
Cleaned up fully qualified names (AI-generated tests characteristics).
--
This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.
To unsubscribe, e-mail: [email protected]
For queries about this service, please contact Infrastructure at:
[email protected]