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

Is it time for INSERT APPEND?

    XMLWordPrintableJSON

Details

    • New Feature
    • Status: Resolved
    • Major
    • Resolution: Duplicate
    • None
    • None
    • None
    • None

    Description

      It seems to me that for someone who did not want to wipe an existing table but just wanted to add rows to it, that an INSERT APPEND may be desirable. I would expect that the mechanism by which this would take place is the whole normal mapreduce step as if an OVERWRITE were taking place, but the end result would be adding files to the hdfs directory rather than wiping the directory and replacing it with a new one.

      Or failing that, INSERT APPEND could be syntactic sugar for an INSERT OVERWRITE on the same table, but with the SELECT statement replaced with the user-specified SELECT and UNION ALL'd on select * for the existing table...which is my current workaround, but seems like an inelegant query.

      Attachments

        Issue Links

          Activity

            People

              Unassigned Unassigned
              akramer Adam Kramer
              Votes:
              0 Vote for this issue
              Watchers:
              5 Start watching this issue

              Dates

                Created:
                Updated:
                Resolved: