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

Fix create view over literals

    XMLWordPrintableJSON

Details

    • Bug
    • Status: Closed
    • Major
    • Resolution: Fixed
    • None
    • 3.1.2, 3.2.0, 4.0.0-alpha-1
    • None
    • None
    • 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 mgergely)

      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

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

              Dates

                Created:
                Updated:
                Resolved: