Github user gatorsmile commented on a diff in the pull request:
https://github.com/apache/spark/pull/14746#discussion_r76366559
--- Diff:
sql/core/src/main/scala/org/apache/spark/sql/execution/command/views.scala ---
@@ -105,7 +105,13 @@ case class CreateViewCommand(
}
val sessionState = sparkSession.sessionState
- if (isTemporary) {
+ // 1) CREATE VIEW: create a temp view when users explicitly specify
the keyword TEMPORARY;
+ // otherwise, create a permanent view no matter
whether the temporary view
+ // with the same name exists or not.
+ // 2) ALTER VIEW: alter the temporary view if the temp view exists;
otherwise, try to alter
--- End diff --
Yeah! The only way is to pass a flag.
---
If your project is set up for it, you can reply to this email and have your
reply appear on GitHub as well. If your project does not have this feature
enabled and wishes so, or if the feature is enabled but not working, please
contact infrastructure at [email protected] or file a JIRA ticket
with INFRA.
---
---------------------------------------------------------------------
To unsubscribe, e-mail: [email protected]
For additional commands, e-mail: [email protected]