Uploaded image for project: 'Hive'
  1. Hive
  2. HIVE-20010

Fix create view over literals

    XMLWordPrintableJSON

    Details

    • Type: Bug
    • Status: Closed
    • Priority: Major
    • Resolution: Fixed
    • Affects Version/s: None
    • Fix Version/s: 3.1.2, 3.2.0, 4.0.0
    • Component/s: None
    • Labels:
      None
    • Target Version/s:
    • Hadoop Flags:
      Reviewed

      Description

      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
      

        Attachments

        1. HIVE-20010.01.patch
          4 kB
          Zoltan Haindrich

          Issue Links

            Activity

              People

              • Assignee:
                kgyrtkirk Zoltan Haindrich
                Reporter:
                kgyrtkirk Zoltan Haindrich
              • Votes:
                0 Vote for this issue
                Watchers:
                3 Start watching this issue

                Dates

                • Created:
                  Updated:
                  Resolved: