From b4940b0f463e11cde54564a648cc9d0f65f8296a Mon Sep 17 00:00:00 2001 From: yeatsliao Date: Wed, 6 Dec 2023 10:07:13 +0800 Subject: [PATCH] [AMORO-2407] Fix access data file from dashboard of non-partitioned table (#2408) * fix null partition * fix listing files of non-partitioned iceberg table --- .../arctic/server/dashboard/MixedAndIcebergTableDescriptor.java | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/ams/server/src/main/java/com/netease/arctic/server/dashboard/MixedAndIcebergTableDescriptor.java b/ams/server/src/main/java/com/netease/arctic/server/dashboard/MixedAndIcebergTableDescriptor.java index 482fb55abe..56850d0d33 100644 --- a/ams/server/src/main/java/com/netease/arctic/server/dashboard/MixedAndIcebergTableDescriptor.java +++ b/ams/server/src/main/java/com/netease/arctic/server/dashboard/MixedAndIcebergTableDescriptor.java @@ -499,7 +499,7 @@ private CloseableIterable 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); }