We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 69c9545 commit f0c5676Copy full SHA for f0c5676
spark/src/main/scala/org/apache/spark/sql/delta/PreprocessTableWithDVs.scala
@@ -147,7 +147,12 @@ object ScanWithDeletionVectors {
147
case o => o
148
}
149
} else {
150
- inputScan.output :+ fileFormat.createFileMetadataCol()
+ val metadataAttr = fileFormat.createFileMetadataCol()
151
+ val rowIndexOnlyDataType =
152
+ metadataAttr.dataType.asInstanceOf[StructType].apply(Set(ParquetFileFormat.ROW_INDEX))
153
+ inputScan.output :+ metadataAttr.copy(
154
+ dataType = rowIndexOnlyDataType)(
155
+ exprId = metadataAttr.exprId, qualifier = metadataAttr.qualifier)
156
157
158
inputScan.output
0 commit comments