Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
Original file line number Diff line number Diff line change
Expand Up @@ -683,7 +683,7 @@ protected Node visitShowCreate(ShowCreate node, Void context)
List<Property> propertyNodes = buildProperties(targetTableName, Optional.empty(), INVALID_TABLE_PROPERTY, properties, allTableProperties);

CreateTable createTable = new CreateTable(
QualifiedName.of(objectName.getCatalogName(), objectName.getSchemaName(), objectName.getObjectName()),
QualifiedName.of(targetTableName.getCatalogName(), targetTableName.getSchemaName(), targetTableName.getObjectName()),
columns,
false,
propertyNodes,
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -261,7 +261,7 @@ public void testShowCreateTable()
createIcebergTable(icebergTableName, true);

assertThat(onTrino().executeQuery("SHOW CREATE TABLE " + hiveTableName))
.containsOnly(row("CREATE TABLE " + hiveTableName + " (\n" +
.containsOnly(row("CREATE TABLE " + icebergTableName + " (\n" +
" nationkey bigint,\n" +
" name varchar,\n" +
" regionkey bigint,\n" +
Expand Down