Details
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
- is related to
-
IMPALA-7330 Make the table metadata refresh after "LOAD" commands incremental
- Resolved