PREHOOK: query: -- Tests that when overwriting a partition in a table after altering the serde properties -- the partition metadata is updated as well. CREATE TABLE tst1(key STRING, value STRING) PARTITIONED BY (ds STRING) PREHOOK: type: CREATETABLE PREHOOK: Output: database:default PREHOOK: Output: default@tst1 POSTHOOK: query: -- Tests that when overwriting a partition in a table after altering the serde properties -- the partition metadata is updated as well. CREATE TABLE tst1(key STRING, value STRING) PARTITIONED BY (ds STRING) POSTHOOK: type: CREATETABLE POSTHOOK: Output: database:default POSTHOOK: Output: default@tst1 PREHOOK: query: DESCRIBE FORMATTED tst1 PREHOOK: type: DESCTABLE PREHOOK: Input: default@tst1 POSTHOOK: query: DESCRIBE FORMATTED tst1 POSTHOOK: type: DESCTABLE POSTHOOK: Input: default@tst1 # col_name data_type comment key string value string # Partition Information # col_name data_type comment ds string # Detailed Table Information Database: default #### A masked pattern was here #### Protect Mode: None Retention: 0 #### A masked pattern was here #### Table Type: MANAGED_TABLE Table Parameters: #### A masked pattern was here #### # Storage Information SerDe Library: org.apache.hadoop.hive.serde2.lazy.LazySimpleSerDe InputFormat: org.apache.hadoop.mapred.TextInputFormat OutputFormat: org.apache.hadoop.hive.ql.io.HiveIgnoreKeyTextOutputFormat Compressed: No Num Buckets: -1 Bucket Columns: [] Sort Columns: [] Storage Desc Params: serialization.format 1 PREHOOK: query: INSERT OVERWRITE TABLE tst1 PARTITION (ds = '1') SELECT key, value FROM src PREHOOK: type: QUERY PREHOOK: Input: default@src PREHOOK: Output: default@tst1@ds=1 POSTHOOK: query: INSERT OVERWRITE TABLE tst1 PARTITION (ds = '1') SELECT key, value FROM src POSTHOOK: type: QUERY POSTHOOK: Input: default@src POSTHOOK: Output: default@tst1@ds=1 POSTHOOK: Lineage: tst1 PARTITION(ds=1).key SIMPLE [(src)src.FieldSchema(name:key, type:string, comment:default), ] POSTHOOK: Lineage: tst1 PARTITION(ds=1).value SIMPLE [(src)src.FieldSchema(name:value, type:string, comment:default), ] PREHOOK: query: DESCRIBE FORMATTED tst1 PARTITION (ds = '1') PREHOOK: type: DESCTABLE PREHOOK: Input: default@tst1 POSTHOOK: query: DESCRIBE FORMATTED tst1 PARTITION (ds = '1') POSTHOOK: type: DESCTABLE POSTHOOK: Input: default@tst1 # col_name data_type comment key string value string # Partition Information # col_name data_type comment ds string # Detailed Partition Information Partition Value: [1] Database: default Table: tst1 #### A masked pattern was here #### Protect Mode: None #### A masked pattern was here #### Partition Parameters: COLUMN_STATS_ACCURATE true numFiles 1 numRows 500 rawDataSize 5312 totalSize 5812 #### A masked pattern was here #### # Storage Information SerDe Library: org.apache.hadoop.hive.serde2.lazy.LazySimpleSerDe InputFormat: org.apache.hadoop.mapred.TextInputFormat OutputFormat: org.apache.hadoop.hive.ql.io.HiveIgnoreKeyTextOutputFormat Compressed: No Num Buckets: -1 Bucket Columns: [] Sort Columns: [] Storage Desc Params: serialization.format 1 PREHOOK: query: -- Test altering the serde properties ALTER TABLE tst1 SET SERDEPROPERTIES ('field.delim' = ',') PREHOOK: type: ALTERTABLE_SERDEPROPERTIES PREHOOK: Input: default@tst1 PREHOOK: Output: default@tst1 POSTHOOK: query: -- Test altering the serde properties ALTER TABLE tst1 SET SERDEPROPERTIES ('field.delim' = ',') POSTHOOK: type: ALTERTABLE_SERDEPROPERTIES POSTHOOK: Input: default@tst1 POSTHOOK: Output: default@tst1 PREHOOK: query: DESCRIBE FORMATTED tst1 PREHOOK: type: DESCTABLE PREHOOK: Input: default@tst1 POSTHOOK: query: DESCRIBE FORMATTED tst1 POSTHOOK: type: DESCTABLE POSTHOOK: Input: default@tst1 # col_name data_type comment key string value string # Partition Information # col_name data_type comment ds string # Detailed Table Information Database: default #### A masked pattern was here #### Protect Mode: None Retention: 0 #### A masked pattern was here #### Table Type: MANAGED_TABLE Table Parameters: #### A masked pattern was here #### # Storage Information SerDe Library: org.apache.hadoop.hive.serde2.lazy.LazySimpleSerDe InputFormat: org.apache.hadoop.mapred.TextInputFormat OutputFormat: org.apache.hadoop.hive.ql.io.HiveIgnoreKeyTextOutputFormat Compressed: No Num Buckets: -1 Bucket Columns: [] Sort Columns: [] Storage Desc Params: field.delim , serialization.format 1 PREHOOK: query: INSERT OVERWRITE TABLE tst1 PARTITION (ds = '1') SELECT key, value FROM src PREHOOK: type: QUERY PREHOOK: Input: default@src PREHOOK: Output: default@tst1@ds=1 POSTHOOK: query: INSERT OVERWRITE TABLE tst1 PARTITION (ds = '1') SELECT key, value FROM src POSTHOOK: type: QUERY POSTHOOK: Input: default@src POSTHOOK: Output: default@tst1@ds=1 POSTHOOK: Lineage: tst1 PARTITION(ds=1).key SIMPLE [(src)src.FieldSchema(name:key, type:string, comment:default), ] POSTHOOK: Lineage: tst1 PARTITION(ds=1).value SIMPLE [(src)src.FieldSchema(name:value, type:string, comment:default), ] PREHOOK: query: DESCRIBE FORMATTED tst1 PARTITION (ds = '1') PREHOOK: type: DESCTABLE PREHOOK: Input: default@tst1 POSTHOOK: query: DESCRIBE FORMATTED tst1 PARTITION (ds = '1') POSTHOOK: type: DESCTABLE POSTHOOK: Input: default@tst1 # col_name data_type comment key string value string # Partition Information # col_name data_type comment ds string # Detailed Partition Information Partition Value: [1] Database: default Table: tst1 #### A masked pattern was here #### Protect Mode: None #### A masked pattern was here #### Partition Parameters: COLUMN_STATS_ACCURATE true numFiles 1 numRows 500 rawDataSize 5312 totalSize 5812 #### A masked pattern was here #### # Storage Information SerDe Library: org.apache.hadoop.hive.serde2.lazy.LazySimpleSerDe InputFormat: org.apache.hadoop.mapred.TextInputFormat OutputFormat: org.apache.hadoop.hive.ql.io.HiveIgnoreKeyTextOutputFormat Compressed: No Num Buckets: -1 Bucket Columns: [] Sort Columns: [] Storage Desc Params: field.delim , serialization.format 1