Skip to content

Commit 02f549a

Browse files
committedMar 18, 2025·
Fix listing Hudi tables when storage location is not set
1 parent 7145b04 commit 02f549a

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed
 

‎plugin/trino-hudi/src/main/java/io/trino/plugin/hudi/HudiMetadata.java

+1-1
Original file line numberDiff line numberDiff line change
@@ -325,7 +325,7 @@ private ConnectorTableMetadata getTableMetadata(SchemaTableName tableName, Colle
325325

326326
ImmutableMap.Builder<String, Object> properties = ImmutableMap.builder();
327327
// Location property
328-
String location = table.getStorage().getLocation();
328+
String location = table.getStorage().getOptionalLocation().orElse(null);
329329
if (!isNullOrEmpty(location)) {
330330
properties.put(LOCATION_PROPERTY, location);
331331
}

0 commit comments

Comments
 (0)
Please sign in to comment.