Saving all output to "!!{outputDirectory}!!/create_skewed_table1.q.raw". Enter "record" with no arguments to stop it. >>> !run !!{qFileDirectory}!!/create_skewed_table1.q >>> set hive.internal.ddl.list.bucketing.enable=true; No rows affected >>> CREATE TABLE list_bucket_single (key STRING, value STRING) SKEWED BY (key) ON ('1','5','6'); No rows affected >>> CREATE TABLE list_bucket_single_2 (key STRING, value STRING) SKEWED BY (key) ON ((1),(5),(6)); No rows affected >>> CREATE TABLE list_bucket_multiple (col1 STRING, col2 int, col3 STRING) SKEWED BY (col1, col2) ON (('s1',1), ('s3',3), ('s13',13), ('s78',78)); No rows affected >>> describe formatted list_bucket_single_2; 'col_name','data_type','comment' '# col_name ','data_type ','comment ' '','','' 'key ','string ','None ' 'value ','string ','None ' '','','' '# Detailed Table Information','','' 'Database: ','create_skewed_table1','' 'Owner: ','!!{user.name}!! ','' 'CreateTime: ','!!TIMESTAMP!!','' 'LastAccessTime: ','UNKNOWN ','' 'Protect Mode: ','None ','' 'Retention: ','0 ','' 'Location: ','!!{hive.metastore.warehouse.dir}!!/create_skewed_table1.db/list_bucket_single_2','' 'Table Type: ','MANAGED_TABLE ','' 'Table Parameters:','','' '','transient_lastDdlTime','!!UNIXTIME!! ' '','','' '# 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: ','[] ','' 'Skewed Columns: ','[key] ','' 'Skewed Values: ','[[1], [5], [6]] ','' 'Storage Desc Params:','','' '','serialization.format','1 ' 29 rows selected >>> describe formatted list_bucket_single; 'col_name','data_type','comment' '# col_name ','data_type ','comment ' '','','' 'key ','string ','None ' 'value ','string ','None ' '','','' '# Detailed Table Information','','' 'Database: ','create_skewed_table1','' 'Owner: ','!!{user.name}!! ','' 'CreateTime: ','!!TIMESTAMP!!','' 'LastAccessTime: ','UNKNOWN ','' 'Protect Mode: ','None ','' 'Retention: ','0 ','' 'Location: ','!!{hive.metastore.warehouse.dir}!!/create_skewed_table1.db/list_bucket_single','' 'Table Type: ','MANAGED_TABLE ','' 'Table Parameters:','','' '','transient_lastDdlTime','!!UNIXTIME!! ' '','','' '# 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: ','[] ','' 'Skewed Columns: ','[key] ','' 'Skewed Values: ','[[1], [5], [6]] ','' 'Storage Desc Params:','','' '','serialization.format','1 ' 29 rows selected >>> describe formatted list_bucket_multiple; 'col_name','data_type','comment' '# col_name ','data_type ','comment ' '','','' 'col1 ','string ','None ' 'col2 ','int ','None ' 'col3 ','string ','None ' '','','' '# Detailed Table Information','','' 'Database: ','create_skewed_table1','' 'Owner: ','!!{user.name}!! ','' 'CreateTime: ','!!TIMESTAMP!!','' 'LastAccessTime: ','UNKNOWN ','' 'Protect Mode: ','None ','' 'Retention: ','0 ','' 'Location: ','!!{hive.metastore.warehouse.dir}!!/create_skewed_table1.db/list_bucket_multiple','' 'Table Type: ','MANAGED_TABLE ','' 'Table Parameters:','','' '','transient_lastDdlTime','!!UNIXTIME!! ' '','','' '# 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: ','[] ','' 'Skewed Columns: ','[col1, col2] ','' 'Skewed Values: ','[[s1, 1], [s3, 3], [s13, 13], [s78, 78]]','' 'Storage Desc Params:','','' '','serialization.format','1 ' 30 rows selected >>> drop table list_bucket_single; No rows affected >>> drop table list_bucket_multiple; No rows affected >>> drop table list_bucket_single_2; No rows affected >>> !record