deniskuzZ commented on code in PR #6711:
URL: https://github.com/apache/hive/pull/6711#discussion_r3828699217


##########
iceberg/iceberg-handler/src/main/java/org/apache/iceberg/mr/hive/IcebergAcidUtil.java:
##########
@@ -261,12 +244,23 @@ public static class VirtualColumnAwareIterator<T> 
implements CloseableIterator<T
     private final GenericRecord current;
     private final Configuration conf;
 
-    public VirtualColumnAwareIterator(
-        CloseableIterator<T> currentIterator, Schema expectedSchema, 
Configuration conf) {
+    private final int specId;
+    private final long partitionHash;
+    private final String filePath;
+
+    public VirtualColumnAwareIterator(CloseableIterator<T> currentIterator, 
Schema expectedSchema,
+        Configuration conf, FileScanTask task) {
       this.currentIterator = currentIterator;
-      this.current = GenericRecord.create(
-          new Schema(expectedSchema.columns().subList(4, 
expectedSchema.columns().size())));
+      this.current = GenericRecord.create(new Schema(
+          expectedSchema.columns().subList(FILE_READ_META_COLS.size(), 
expectedSchema.columns().size())));
       this.conf = conf;

Review Comment:
   wrong, `FILE_READ_META_COLS`.size() stands for the same offset



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