Uploaded image for project: 'IMPALA'
  1. IMPALA
  2. IMPALA-7313

LOAD DATA does not create partitions on-demand (inconsistent with INSERT)

    XMLWordPrintableJSON

Details

    • Improvement
    • Status: Open
    • Minor
    • Resolution: Unresolved
    • Impala 3.0
    • None
    • Docs, Frontend
    • None
    • ghx-label-1

    Description

      I noticed this inconsistency while working on IMPALA-7311: if a table is partitioned, new partitions are created on-demand by statements like:

      INSERT INTO t PARTITION (...) ...
      

      However, the following SQL does not create a partition on demand:

      LOAD DATA INPATH '...path...' INTO TABLE t PARTITION (...);
      

      Instead, it fails with "Partition spec does not exist: (...)"

      This seems inconsistent and makes the LOAD DATA statement less useful. It seems this should at least be called out in the documentation for LOAD DATA if it's intentional, and perhaps fixed if it's not intentional (perhaps LOAD DATA predates automatic partition creation support?)

      Attachments

        Issue Links

          Activity

            People

              Unassigned Unassigned
              tlipcon Todd Lipcon
              Votes:
              0 Vote for this issue
              Watchers:
              2 Start watching this issue

              Dates

                Created:
                Updated: