create or replace view v1 as select 1 as q
results in an error:
Error: Error while processing statement: FAILED: Execution Error, return code 1 from org.apache.hadoop.hive.ql.exec.DDLTask. Table already exists: default.v1 (state=08S01,code=1)
however the following works (thank you Miklos Gergely)
create or replace view v1 as select 1 as q union all select 1 as qq where false
- blocks
-
HIVE-19938 Upgrade scripts for information schema
-
- Closed
-
- is duplicated by
-
HIVE-20872 Creating information_schema and sys schema via schematool fails with parser error
-
- Resolved
-
-
HIVE-19444 Create View - Table not found _dummy_table
-
- Resolved
-