[HUDI-2941] Show _hoodie_operation in spark sql results (#4649)
This commit is contained in:
@@ -189,11 +189,11 @@ public class HoodieClusteringJob {
|
||||
}
|
||||
|
||||
private String getSchemaFromLatestInstant() throws Exception {
|
||||
TableSchemaResolver schemaUtil = new TableSchemaResolver(metaClient);
|
||||
TableSchemaResolver schemaResolver = new TableSchemaResolver(metaClient);
|
||||
if (metaClient.getActiveTimeline().getCommitsTimeline().filterCompletedInstants().countInstants() == 0) {
|
||||
throw new HoodieException("Cannot run clustering without any completed commits");
|
||||
}
|
||||
Schema schema = schemaUtil.getTableAvroSchema(false);
|
||||
Schema schema = schemaResolver.getTableAvroSchema(false);
|
||||
return schema.toString();
|
||||
}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user