Skip to content

Commit

Permalink
SPARK-46106 If the hive table is a table, the outsourcing information…
Browse files Browse the repository at this point in the history
… will be displayed during ShowCreateTableCommand.
  • Loading branch information
guixiaowen committed Nov 26, 2023
1 parent b501a22 commit e0b819b
Showing 1 changed file with 6 additions and 1 deletion.
Original file line number Diff line number Diff line change
Expand Up @@ -1172,7 +1172,12 @@ case class ShowCreateTableCommand(

builder.toString()
} else {
builder ++= s"CREATE TABLE ${table.quoted} "

if (tableMetadata.tableType == EXTERNAL) {
builder ++= s"CREATE EXTERNAL TABLE ${table.quoted} "
} else {
builder ++= s"CREATE TABLE ${table.quoted} "
}

showCreateDataSourceTable(metadata, builder)
builder.toString()
Expand Down

0 comments on commit e0b819b

Please sign in to comment.