diff --git a/common/thrift/CatalogService.thrift b/common/thrift/CatalogService.thrift index 261fb7365..51379682f 100644 --- a/common/thrift/CatalogService.thrift +++ b/common/thrift/CatalogService.thrift @@ -325,8 +325,9 @@ struct TResetMetadataRequest { // the entire catalog 4: optional CatalogObjects.TTableName table_name - // If set, refreshes the specified partition, otherwise - // refreshes the whole table + // Deprecated - use partition_spec_list instead. Keeps this for compatibility. + // If set, refreshes the specified partition. + // Refreshes the whole table if both this and partition_spec_list are not set. 5: optional list partition_spec // If set, refreshes functions in the specified database. @@ -344,6 +345,10 @@ struct TResetMetadataRequest { // debug_action is set from the query_option when available. 10: optional string debug_action + + // If set, refreshes the specified list of partitions + // Refreshes the whole table if both this and partition_spec are not set. + 11: optional list> partition_spec_list } // Response from TResetMetadataRequest diff --git a/docs/impala_keydefs.ditamap b/docs/impala_keydefs.ditamap index af4c41682..46ec6b856 100644 --- a/docs/impala_keydefs.ditamap +++ b/docs/impala_keydefs.ditamap @@ -10604,6 +10604,7 @@ under the License. Impala 1.3.2 Impala 1.3.0 + Impala 5.0 Impala 4.2 Impala 3.4 Impala 3.3 diff --git a/docs/topics/impala_refresh.xml b/docs/topics/impala_refresh.xml index 4e43b1e2d..dcc959044 100644 --- a/docs/topics/impala_refresh.xml +++ b/docs/topics/impala_refresh.xml @@ -67,7 +67,9 @@ under the License.

-REFRESH [db_name.]table_name [PARTITION (key_col1=val1 [, key_col2=val2...])] +REFRESH [db_name.]table_name +[PARTITION (key_col1=val1 [, key_col2=val2...]) + [PARTITION (key_col1=val3 [, key_col2=val4...])...]

@@ -115,7 +117,7 @@ under the License.

- Refreshing a single partition: + Refreshing specific partitions:

@@ -125,6 +127,13 @@ under the License. values for each of the partition key columns.

+

+ In and higher, the REFRESH statement + can apply to multiple partitions at a time, rather than a single partition. Use the + optional PARTITION (partition_spec) clause for each + each of the partition. +

+

The following rules apply: