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

insert into statement overwrites if target table is prefixed with database name

    XMLWordPrintableJSON

    Details

    • Type: Bug
    • Status: Closed
    • Priority: Major
    • Resolution: Fixed
    • Affects Version/s: 0.8.1
    • Fix Version/s: 0.10.0
    • Component/s: Query Processor
    • Labels:
      None
    • Hadoop Flags:
      Reviewed

      Description

      insert into statement works as expected when the target table is not prefixed with database name. It does append correctly.

      However, if I specify a database name prefixing the target table, the statement just overwrites instead of appends:

      insert into table my_database.target select * from source;

        Attachments

        1. HIVE-3465.1.patch.txt
          21 kB
          Navis Ryu
        2. HIVE-3465.D5661.1.patch
          20 kB
          Phabricator

          Issue Links

            Activity

              People

              • Assignee:
                navis Navis Ryu
                Reporter:
                kaufman Kaufman Ng
              • Votes:
                0 Vote for this issue
                Watchers:
                8 Start watching this issue

                Dates

                • Created:
                  Updated:
                  Resolved: