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

INSERT OVERWRITE TABLE db.table PARTITION () if not exists . will error as Table not found db (state=42000,code=40000)

    XMLWordPrintableJSON

    Details

    • Type: Bug
    • Status: Open
    • Priority: Major
    • Resolution: Unresolved
    • Affects Version/s: 2.2.0
    • Fix Version/s: None
    • Component/s: CLI
    • Labels:
      None

      Description

      if i use INSERT OVERWRITE TABLE   db.table PARTITION ()  if not exists select xx, it wii error

      as 

      Error: Error while compiling statement: FAILED: SemanticException org.apache.hadoop.hive.ql.metadata.InvalidTableException: Table not found db (state=42000,code=40000)

       

      but   INSERT OVERWRITE TABLE   db.table PARTITION ()  select,  do not use [if not exists], it is ok

        Attachments

          Activity

            People

            • Assignee:
              Unassigned
              Reporter:
              xhmz xhmz
            • Votes:
              0 Vote for this issue
              Watchers:
              1 Start watching this issue

              Dates

              • Created:
                Updated: