infvg commented on code in PR #11868:
URL: https://github.com/apache/gluten/pull/11868#discussion_r3072037142
##########
cpp/velox/compute/iceberg/IcebergWriter.cc:
##########
@@ -212,7 +221,47 @@ IcebergWriter::IcebergWriter(
}
void IcebergWriter::write(const VeloxColumnarBatch& batch) {
- dataSink_->appendData(batch.getRowVector());
+ auto inputRowVector = batch.getRowVector();
+ auto inputRowType = asRowType(inputRowVector->type());
+
+ // Filter columns to match the expected schema (rowType_)
Review Comment:
The first column is a metadata column __row_operation and the other metadata
columns are appended at the end, so I sliced it from 1, i columns to extract
the regular columns.
--
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]