Skip to content

Commit

Permalink
small change
Browse files Browse the repository at this point in the history
  • Loading branch information
gaoyangxiaozhu committed Apr 9, 2024
1 parent cef0020 commit 1ab09f9
Showing 1 changed file with 3 additions and 1 deletion.
4 changes: 3 additions & 1 deletion velox/connectors/hive/SplitReader.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -216,7 +216,9 @@ void SplitReader::setRowIndexColumnInfoIfNeed(
auto rowIndexMetaColIdx =
readerOutputType_->getChildIdxIfExists(kSparkReservedTmpMetaRowIndex);
if (rowIndexMetaColIdx.has_value() &&
!fileType->containsChild(kSparkReservedTmpMetaRowIndex)) {
!fileType->containsChild(kSparkReservedTmpMetaRowIndex) &&
hiveSplit_->partitionKeys.find(kSparkReservedTmpMetaRowIndex) ==
hiveSplit_->partitionKeys.end()) {
dwio::common::RowNumberColumnInfo rowNumberColumnInfo;
rowNumberColumnInfo.insertPosition = rowIndexMetaColIdx.value();
rowNumberColumnInfo.name = kSparkReservedTmpMetaRowIndex;
Expand Down

0 comments on commit 1ab09f9

Please sign in to comment.