github-actions[bot] commented on code in PR #70808:
URL: https://github.com/apache/doris/pull/70808#discussion_r4666116645


##########
be/src/format_v2/table/iceberg_position_delete_sys_table_reader.cpp:
##########
@@ -321,9 +321,12 @@ Status 
IcebergPositionDeleteSysTableV2Reader::_init_position_delete_reader() {
         file_format = format::FileFormat::PARQUET;
     } else if (_delete_file_desc->file_format == TFileFormatType::FORMAT_ORC) {
         file_format = format::FileFormat::ORC;
+    } else if (_delete_file_desc->file_format == TFileFormatType::FORMAT_AVRO) 
{
+        file_format = format::FileFormat::AVRO;

Review Comment:
   [P1] Keep Avro position deletes readable when rewriting them. This new 
branch enables FORMAT_AVRO in the query/system-table reader, but v3 rewrites 
call VIcebergDeleteSink::load_rewritable_delete_rows(), which still reaches 
read_iceberg_position_delete_file() and the unchanged validator in 
be/src/format/table/iceberg_delete_file_reader_helper.cpp:64-65; that validator 
rejects AVRO (and the :243-245 ternary maps only Parquet/ORC). A v3 
MERGE/DELETE on a table with an Avro position-delete file therefore fails while 
carrying forward existing deletions. Add the Avro reader/format mapping to that 
sink-side helper and cover a rewrite of an Avro position-delete file.



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