leaves12138 commented on code in PR #7602:
URL: https://github.com/apache/paimon/pull/7602#discussion_r3042801656


##########
paimon-format/src/main/java/org/apache/paimon/format/parquet/reader/ParquetVectorUpdaterFactory.java:
##########
@@ -230,6 +231,11 @@ public UpdaterFactory visit(BlobType blobType) {
             };
         }
 
+        @Override
+        public UpdaterFactory visit(BlobRefType blobRefType) {

Review Comment:
   Addressed in `915465dc44`. I updated `ParquetSchemaConverter`, 
`ParquetRowDataWriter`, and `ParquetReaderUtil` so `BLOB_REF` is handled as 
reference bytes end-to-end on the parquet schema/write/read path. While 
touching the format stack I also filled the same schema/read/write gap for Avro.



##########
paimon-format/src/main/java/org/apache/paimon/format/orc/writer/FieldWriterFactory.java:
##########
@@ -264,6 +265,18 @@ public FieldWriter visit(BlobType blobType) {
         };
     }
 
+    @Override
+    public FieldWriter visit(BlobRefType blobRefType) {

Review Comment:
   This adds the ORC field writer, but `OrcTypeUtil.convertToOrcType(...)` 
still only has a `case BLOB` branch. That means an ORC table with a `BLOB_REF` 
column never reaches this writer because schema conversion fails first. I think 
`OrcTypeUtil` needs the same `BLOB_REF -> binary` mapping.



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