feat: translate parquet.enable.dictionary for native Iceberg writes #7775
All Vouch review confidence checks passed
Residual risk 0.21 = Change Risk (0.40) × (1 − Review Confidence (0.47)).
Review depth and reviewer attention state are adequate.
Model 1 · Change Risk (XGBoost)
Score: 0.40 · 304 lines diff across 3 files
Model 2 · Review Depth (DistilBERT)
Depth Score: 0.02 · 1 substantive comment(s)
Model 3 · Review Timing & Attention
Session adequacy: 100% · Reviewer familiarity: 35%
Bedrock Claude 3 · Risk Narration
(disconnected)
Groq Risk Narration
AWS Bedrock is currently disconnected. Generate high-confidence PR triage narration on-demand using Groq.
Model 1 · Change Risk Attribution
SHAP Weights
Shallow Review Depth
shallow_review_depth
0.344
Diff Size
diff_size
0.342
Real PR Conversation Timeline
1 comments
"Review active on #7775"
general
weight: 0.35
comphead
Which issue does this PR close?
Part of #6954.
Rationale for this change
Setting
parquet.enable.dictionarycurrently causes native Iceberg writes to fall back toiceberg-java, even thoughparquet-rsalready supports disabling dictionary encoding viaWriterProperties::set_dictionary_enabled(false).In
iceberg-java,Parquet.WriteBuilderreadsparquet.enable.dictionaryfrom table/write properties usingPropertyUtil.propertyAsBoolean(Boolean.parseBooleansemantics, defaulting totruewhen unset) and ignores it when set in Hadoop configuration. Supporting this directly avoids unnecessary fallbacks when dictionary encoding is disabled.What changes are included in this PR?
parquet.enable.dictionaryfallback check inCometIcebergNativeWrite, addeddictionary_enabledtoIcebergParquetWriteSettingsinoperator.proto, and translated the property inIcebergWriteProtoTranslationmatchingBoolean.parseBooleansemantics.settings.dictionary_enabledtoWriterProperties::set_dictionary_enabled(...)inbuild_writer_propertiesand skippedDictionaryChoosersampling/selection when dictionary encoding is disabled.- Added Rust unit tests in
iceberg_dictionary.rsandiceberg_write.rs.- Added translation unit tests in
IcebergWriteProtoTranslationSuite.- Updated
CometIcebergWriteDetectionSuiteto verifyCompatibledetection for table properties and write options.- Updated
CometIcebergWriteActionSuitekey classification and added a both-writers comparison test (parquet.enable.dictionary=false) checking output rows,readable_metrics, and column chunk encodings.parquet.enable.dictionaryto the native Iceberg write eligibility table indocs/source/user-guide/latest/iceberg.mdand removed it from the#6954fallback list.How are these changes tested?
cargo test -p datafusion-comet --lib iceberg_dictionaryandcargo test -p datafusion-comet --lib iceberg_writeIcebergWriteProtoTranslationSuite,CometIcebergWriteDetectionSuite, andCometIcebergWriteActionSuitecargo fmt --check,cargo clippy --all-targets --workspace -- -D warnings,./mvnw spotless:check,scalastyle:check, Prettier, Apache RAT, and-Pspark-3.5,delta -Pstrict-warningscompilation