Skip to content

Commit

Permalink
[AMORO-2407] Fix access data file from dashboard of non-partitioned t…
Browse files Browse the repository at this point in the history
…able (apache#2408)

* fix null partition

* fix listing files of non-partitioned iceberg table
  • Loading branch information
liaoyt authored and ShawHee committed Dec 29, 2023
1 parent ba09fdb commit b4940b0
Showing 1 changed file with 1 addition and 1 deletion.
Original file line number Diff line number Diff line change
Expand Up @@ -499,7 +499,7 @@ private CloseableIterable<PartitionFileBaseInfo> collectFileInfo(
IcebergFindFiles manifestReader =
new IcebergFindFiles(table).ignoreDeleted().planWith(executorService);

if (partition != null && specId != null) {
if (table.spec().isPartitioned() && partition != null && specId != null) {
GenericRecord partitionData = ArcticDataFiles.data(specs.get(specId), partition);
manifestReader.inPartitions(specs.get(specId), partitionData);
}
Expand Down

0 comments on commit b4940b0

Please sign in to comment.