vinishjail97 opened a new issue, #832:
URL: https://github.com/apache/incubator-xtable/issues/832

   ## Background
   
   Part of the Hudi 1.x upgrade (#762).
   
   In Hudi 1.2.0 the metadata-table (MDT) **partition-stats index is coupled to 
the column-stats index**. For partitioned tables, the partition-stats 
generation path rebuilds a file-system view over the committed external parquet 
files and groups them by `fileId`. XTable registers externally-written files 
whose names are **not** Hudi-native; once the `_hudiext` marker is stripped, 
the remaining file name cannot be parsed into a valid `fileId`, which causes 
column/partition-stats generation to fail.
   
   ## Current workaround
   
   In `HudiConversionTarget#getWriteConfig`, column stats are enabled **only 
for un-partitioned tables**:
   
   ```java
   
.withMetadataIndexColumnStats(!metaClient.getTableConfig().isTablePartitioned())
   ```
   
   So partitioned tables synced through XTable currently get no MDT 
column-stats index.
   
   ## Ask
   
   Enable the MDT column-stats (and partition-stats) index for partitioned 
tables, e.g. by making the partition-stats file grouping tolerant of 
externally-registered (non-Hudi) file names, so col-stats can be turned on 
regardless of partitioning.
   
   ## Notes
   
   - This is distinct from #773 (closed), which was about col-stats generation 
failing for array/map **schema types**.
   
   ### Are you willing to submit PR?
   
   - [ ] Yes I am willing to submit a PR!
   
   ### Code of Conduct
   
   - [x] I agree to follow this project's [Code of 
Conduct](https://www.apache.org/foundation/policies/conduct)


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