the-other-tim-brown commented on code in PR #17456:
URL: https://github.com/apache/hudi/pull/17456#discussion_r2581854703
##########
hudi-common/src/main/java/org/apache/hudi/common/table/TableSchemaResolver.java:
##########
@@ -117,6 +118,18 @@ private Option<Schema>
getTableAvroSchemaFromDataFileInternal() {
return getTableParquetSchemaFromDataFile();
}
+ /**
+ * Gets full schema (user + metadata) for a hoodie table as HoodieSchema.
+ * Delegates to getTableAvroSchema and wraps the result in a HoodieSchema.
+ *
+ * @return HoodieSchema for this table
+ * @throws Exception
+ */
+ public HoodieSchema getTableSchema() throws Exception {
Review Comment:
Let's also add an option that takes in `includeMetadataFields` so we can
migrate those calls as well
--
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]