924060929 commented on code in PR #70214:
URL: https://github.com/apache/doris/pull/70214#discussion_r4751103801


##########
gensrc/thrift/DataSinks.thrift:
##########
@@ -466,6 +466,9 @@ struct TIcebergCommitData {
     14: optional i64 affected_rows
     // Parquet data-file row-group starts, independent of column metrics 
policy.
     15: optional list<i64> split_offsets
+    // In partition_values order. Distinguishes SQL NULL from the literal 
string "null".
+    // Unset means the sender uses the legacy "null" token for SQL NULL.
+    17: optional list<bool> partition_values_is_null

Review Comment:
   [P2] Please add a short comment noting that field ID `16` is intentionally 
skipped/reserved (e.g., for `#69704`), per `gensrc/AGENTS.md`, so future 
changes do not accidentally reuse it or treat the gap as a typo.



##########
fe/fe-connector/fe-connector-iceberg/src/main/java/org/apache/doris/connector/iceberg/IcebergWriterHelper.java:
##########
@@ -80,6 +80,9 @@ final class IcebergWriterHelper {
 
     private static final Logger LOG = 
LogManager.getLogger(IcebergWriterHelper.class);
 
+    // Older FEs supply a Thrift class without this field when loading a newer 
connector.
+    private static final TIcebergCommitData._Fields 
PARTITION_VALUES_IS_NULL_FIELD =

Review Comment:
   [P2] Prefer calling the generated typed accessors 
`commitData.isSetPartitionValuesIsNull()` and 
`commitData.getPartitionValuesIsNull()` directly instead of 
`TIcebergCommitData._Fields.findByName("partition_values_is_null")` + raw 
`List<?>` cast. Other recently added Thrift fields in this same connector 
(`commitData.getSplitOffsets()`, `stats.isSetNanValueCounts()`, 
`tSink.setStaticPartitionNullKeys()`) already rely on generated methods, and 
string-based lookup silently falls back to the legacy `"null"`-token decoder if 
the field name ever drifts.



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


---------------------------------------------------------------------
To unsubscribe, e-mail: [email protected]
For additional commands, e-mail: [email protected]

Reply via email to