diff --git a/plugin/trino-hive/src/main/java/io/trino/plugin/hive/metastore/glue/converter/GlueInputConverter.java b/plugin/trino-hive/src/main/java/io/trino/plugin/hive/metastore/glue/converter/GlueInputConverter.java index 9c5a7367c6e46..11defde147e1a 100644 --- a/plugin/trino-hive/src/main/java/io/trino/plugin/hive/metastore/glue/converter/GlueInputConverter.java +++ b/plugin/trino-hive/src/main/java/io/trino/plugin/hive/metastore/glue/converter/GlueInputConverter.java @@ -70,10 +70,10 @@ public static TableInput convertTable(Table table) Map tableParameters = table.getParameters(); Optional comment = Optional.empty(); if (!isTrinoView(table) && !isTrinoMaterializedView(table)) { + comment = Optional.ofNullable(tableParameters.get(TABLE_COMMENT)); tableParameters = tableParameters.entrySet().stream() .filter(entry -> !entry.getKey().equals(TABLE_COMMENT)) .collect(toImmutableMap(Entry::getKey, Entry::getValue)); - comment = Optional.ofNullable(table.getParameters().get(TABLE_COMMENT)); } TableInput input = new TableInput();