[fix](iceberg) fix error when query iceberg v2 format (#22182)

This bug is introduced from #21771
Missing fileType field of TFileScanRangeParams, so the delete file of iceberg v2 will be treated as local file
and fail to read.
This commit is contained in:
Mingyu Chen
2023-07-25 21:15:46 +08:00
committed by GitHub
parent 6dd0ca6d0b
commit 20f180c4e1

View File

@ -363,6 +363,10 @@ public abstract class FileQueryScanNode extends FileScanNode {
} else if (locationType == TFileType.FILE_S3 && !params.isSetProperties()) {
params.setProperties(locationProperties);
}
if (!params.isSetFileType()) {
params.setFileType(locationType);
}
}
private TScanRangeLocations newLocations() {