nsivabalan commented on code in PR #5747:
URL: https://github.com/apache/hudi/pull/5747#discussion_r890195983
##########
hudi-hadoop-mr/src/main/java/org/apache/hudi/hadoop/HoodieCopyOnWriteTableInputFormat.java:
##########
@@ -275,16 +276,16 @@ protected static Option<HoodieVirtualKeyInfo>
getHoodieVirtualKeyInfo(HoodieTabl
if (tableConfig.populateMetaFields()) {
return Option.empty();
}
-
TableSchemaResolver tableSchemaResolver = new
TableSchemaResolver(metaClient);
try {
Schema schema = tableSchemaResolver.getTableAvroSchema();
+ boolean isNonPartitionedKeyGen =
StringUtils.isNullOrEmpty(tableConfig.getPartitionFieldProp());
Review Comment:
for a table created w/ spark-sql, it is not. and hence I had to take this
route.
--
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]