the-other-tim-brown commented on code in PR #17739:
URL: https://github.com/apache/hudi/pull/17739#discussion_r2651380025


##########
hudi-client/hudi-flink-client/src/main/java/org/apache/hudi/client/model/HoodieFlinkRecord.java:
##########
@@ -193,14 +194,14 @@ public Object getColumnValueAsJava(Schema recordSchema, 
String column, Propertie
   private Object getColumnValueAsJava(Schema recordSchema, String column, 
Properties props, boolean allowsNull) {
     boolean utcTimezone = Boolean.parseBoolean(props.getProperty(
         HoodieStorageConfig.WRITE_UTC_TIMEZONE.key(), 
HoodieStorageConfig.WRITE_UTC_TIMEZONE.defaultValue().toString()));
-    RowDataQueryContext rowDataQueryContext = 
RowDataAvroQueryContexts.fromAvroSchema(recordSchema, utcTimezone);
+    RowDataQueryContext rowDataQueryContext = 
RowDataQueryContexts.fromSchema(HoodieSchema.fromAvroSchema(recordSchema), 
utcTimezone);
     return rowDataQueryContext.getFieldQueryContext(column).getValAsJava(data, 
allowsNull);
   }
 
   private Object getColumnValue(Schema recordSchema, String column, Properties 
props) {

Review Comment:
   This is a private method so it is fine but as mentioned in the description, 
the record classes are handled in a separate ticket



-- 
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]

Reply via email to