voonhous commented on code in PR #17911:
URL: https://github.com/apache/hudi/pull/17911#discussion_r2699170341
##########
hudi-client/hudi-client-common/src/main/java/org/apache/hudi/index/HoodieIndexUtils.java:
##########
@@ -192,6 +178,15 @@ private static boolean
isSecondaryIndexSupportedType(HoodieSchema schema) {
}
}
+ /**
+ * Check if the given schema type is a complex type (Record, Array, Map).
+ */
+ private static boolean isComplexType(HoodieSchema schema) {
Review Comment:
Wanted to use that, but was afraid of including `ENUM` and `UNION` types.
Since `Pair<String, HoodieSchemaField> fieldSchemaPair =
HoodieSchemaUtils.getNestedField(tableSchema, columnName)` returns a non-null
type, `UNION`s should be ruled out, so we are only left with ENUM, we should be
safe. Will make the switch.
--
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]