Github user gatorsmile commented on the issue:
https://github.com/apache/spark/pull/12872
Currently, the existing DDL behaviors for temporary views when users do not
specify the database name:
- `CREATE OR REPLACE TEMPORARY VIEW view_name` alters the TEMPORARY view if
the temporary view already exists.
- `DROP VIEW view_name` OR `SELECT... FROM view_name` will be always first
applied to a TEMPORARY view, if existing. If the temporary view does not exist,
we will try to drop/fetch the PERSISTENT view, if existing.
- `ALTER VIEW view_name` is only applicable to the PERSISTENT view, even if
the temporary view with the same name exists.
@clockfly @rxin @yhuai @liancheng @hvanhovell @cloud-fan Should we make
them consistent?
---
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]