gatorsmile commented on a change in pull request #26921:
URL: https://github.com/apache/spark/pull/26921#discussion_r414951698
##########
File path:
sql/core/src/main/scala/org/apache/spark/sql/execution/command/tables.scala
##########
@@ -900,22 +900,15 @@ case class ShowTablePropertiesCommand(table:
TableIdentifier, propertyKey: Optio
}
override def run(sparkSession: SparkSession): Seq[Row] = {
- val catalog = sparkSession.sessionState.catalog
-
- if (catalog.isTemporaryTable(table)) {
- Seq.empty[Row]
Review comment:
We allow users to specify the table properties when creating temporary
views.
```SQL
CREATE TEMPORARY VIEW v1
TBLPROPERTIES(prop1 ="3")
AS SELECT 1 AS c1, 2 AS c2
```
Instead of disallowing it, I think we should support it.
----------------------------------------------------------------
This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.
For queries about this service, please contact Infrastructure at:
[email protected]
---------------------------------------------------------------------
To unsubscribe, e-mail: [email protected]
For additional commands, e-mail: [email protected]