nsivabalan commented on issue #16879: URL: https://github.com/apache/hudi/issues/16879#issuecomment-4795645334
This appears to be fixed on master. The root cause was that `FlinkWriteClients.java` was calling `HoodieMetadataConfig.newBuilder()` without `.withEngineType(EngineType.FLINK)`, so the builder defaulted to `EngineType.SPARK` and turned on column stats by default for Flink writers — even though `HoodieMetadataConfig.Builder#getDefaultColStatsEnable` correctly returns `false` for FLINK/JAVA. Fix: commit [c9cf9d5f365a](https://github.com/apache/hudi/commit/c9cf9d5f365a14997ba49c96d975aa29bf48773c) (HUDI-9175, PR #12977, Mar 18 2025) added `.withEngineType(EngineType.FLINK)` to the metadata config builder in `FlinkWriteClients.java` (now at line 235, with the comment `// this affects the default value inference`). With the engine type wired through, `getDefaultColStatsEnable(FLINK)` returns `false` and col stats is no longer enabled by default for Flink writers. Closing as resolved unless you can reproduce on a recent master/release. -- 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]
