deniskuzZ commented on code in PR #6950:
URL: https://github.com/apache/hive/pull/6950#discussion_r4630062691
##########
ql/src/java/org/apache/hadoop/hive/ql/metadata/RowLineageUtils.java:
##########
@@ -145,15 +145,21 @@ public static List<String>
addRowLineageValuesForAppendWhenNotMatchedClause(bool
return insertClauseValues;
}
+ /**
+ * Before each vectorized batch read, marks row 0 with placeholder -1. If
storage still leaves that value,
Review Comment:
Nit: `fills ids below` points at nothing in this class; HiveBatchIterator
fills them.
Maybe:
````
Marks the row lineage columns (-1 in row 0, no nulls) before a batch is
read. If the mark survives the read, the file does not store the column, and
HiveBatchIterator generates the values
````
##########
iceberg/iceberg-handler/src/main/java/org/apache/iceberg/mr/hive/vector/HiveBatchIterator.java:
##########
@@ -136,14 +136,17 @@ private void advance() {
break;
case ROW_LINEAGE_ID:
LongColumnVector rowIdLcv = (LongColumnVector) batch.cols[idx];
+ // If firstRowId is missing, nothing to assign so keep
ROW__LINEAGE__ID as NULL.
Review Comment:
Nit: this comment block (lines 139-141) repeats the comments inside the
branches below (lines 149 and 154).
Consider keeping one of the two.
--
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]