|
|
@@ -1956,36 +1956,38 @@ class TestHiveServer2API():
|
|
|
|
|
|
assert_equal([
|
|
|
{'comment': None, 'col_name': '# Partition Information', 'data_type': None},
|
|
|
- {'comment': 'comment ', 'col_name': '# col_name ', 'data_type': 'data_type '},
|
|
|
+ {'comment': 'comment', 'col_name': '# col_name', 'data_type': 'data_type'},
|
|
|
{'comment': None, 'col_name': '', 'data_type': None},
|
|
|
{'comment': '', 'col_name': 'baz', 'data_type': 'string'},
|
|
|
{'comment': '', 'col_name': 'boom', 'data_type': 'string'},
|
|
|
{'comment': None, 'col_name': '', 'data_type': None},
|
|
|
{'comment': None, 'col_name': '# Detailed Table Information', 'data_type': None},
|
|
|
- {'comment': None, 'col_name': 'Database: ', 'data_type': 'default '},
|
|
|
- {'comment': None, 'col_name': 'Owner: ', 'data_type': 'romain '},
|
|
|
- {'comment': None, 'col_name': 'CreateTime: ', 'data_type': 'Wed Aug 13 13:39:53 PDT 2014'},
|
|
|
- {'comment': None, 'col_name': 'LastAccessTime: ', 'data_type': 'UNKNOWN '},
|
|
|
- {'comment': None, 'col_name': 'Protect Mode: ', 'data_type': 'None '},
|
|
|
- {'comment': None, 'col_name': 'Retention: ', 'data_type': '0 '},
|
|
|
- {'comment': None, 'col_name': 'Location: ', 'data_type': 'hdfs://localhost:8020/user/hive/warehouse/test_partitions'},
|
|
|
- {'comment': None, 'col_name': 'Table Type: ', 'data_type': 'MANAGED_TABLE '},
|
|
|
+ {'comment': None, 'col_name': 'Database:', 'data_type': 'default'},
|
|
|
+ {'comment': None, 'col_name': 'Owner:', 'data_type': 'romain'},
|
|
|
+ {'comment': None, 'col_name': 'CreateTime:', 'data_type': 'Wed Aug 13 13:39:53 PDT 2014'},
|
|
|
+ {'comment': None, 'col_name': 'LastAccessTime:', 'data_type': 'UNKNOWN'},
|
|
|
+ {'comment': None, 'col_name': 'Protect Mode:', 'data_type': 'None'},
|
|
|
+ {'comment': None, 'col_name': 'Retention:', 'data_type': '0'},
|
|
|
+ {'comment': None, 'col_name': 'Location:', 'data_type': 'hdfs://localhost:8020/user/hive/warehouse/test_partitions'},
|
|
|
+ {'comment': None, 'col_name': 'Table Type:', 'data_type': 'MANAGED_TABLE'},
|
|
|
{'comment': None, 'col_name': 'Table Parameters:', 'data_type': None},
|
|
|
- {'comment': '1407962393 ', 'col_name': '', 'data_type': 'transient_lastDdlTime'},
|
|
|
+ {'comment': '1407962393', 'col_name': '', 'data_type': 'transient_lastDdlTime'},
|
|
|
{'comment': None, 'col_name': '', 'data_type': None},
|
|
|
{'comment': None, 'col_name': '# Storage Information', 'data_type': None},
|
|
|
- {'comment': None, 'col_name': 'SerDe Library: ', 'data_type': 'org.apache.hadoop.hive.serde2.lazy.LazySimpleSerDe'},
|
|
|
- {'comment': None, 'col_name': 'InputFormat: ', 'data_type': 'org.apache.hadoop.mapred.TextInputFormat'},
|
|
|
- {'comment': None, 'col_name': 'OutputFormat: ', 'data_type': 'org.apache.hadoop.hive.ql.io.HiveIgnoreKeyTextOutputFormat'},
|
|
|
- {'comment': None, 'col_name': 'Compressed: ', 'data_type': 'No '},
|
|
|
- {'comment': None, 'col_name': 'Num Buckets: ', 'data_type': '-1 '},
|
|
|
- {'comment': None, 'col_name': 'Bucket Columns: ', 'data_type': '[] '},
|
|
|
- {'comment': None, 'col_name': 'Sort Columns: ', 'data_type': '[] '},
|
|
|
+ {'comment': None, 'col_name': 'SerDe Library:', 'data_type': 'org.apache.hadoop.hive.serde2.lazy.LazySimpleSerDe'},
|
|
|
+ {'comment': None, 'col_name': 'InputFormat:', 'data_type': 'org.apache.hadoop.mapred.TextInputFormat'},
|
|
|
+ {'comment': None, 'col_name': 'OutputFormat:', 'data_type': 'org.apache.hadoop.hive.ql.io.HiveIgnoreKeyTextOutputFormat'},
|
|
|
+ {'comment': None, 'col_name': 'Compressed:', 'data_type': 'No'},
|
|
|
+ {'comment': None, 'col_name': 'Num Buckets:', 'data_type': '-1'},
|
|
|
+ {'comment': None, 'col_name': 'Bucket Columns:', 'data_type': '[]'},
|
|
|
+ {'comment': None, 'col_name': 'Sort Columns:', 'data_type': '[]'},
|
|
|
{'comment': None, 'col_name': 'Storage Desc Params:', 'data_type': None},
|
|
|
- {'comment': '\\t ', 'col_name': '', 'data_type': 'field.delim '},
|
|
|
- {'comment': '\\n ', 'col_name': '', 'data_type': 'line.delim '},
|
|
|
- {'comment': '\\t ', 'col_name': '', 'data_type': 'serialization.format'}],
|
|
|
- table.properties)
|
|
|
+ {'comment': '\\t', 'col_name': '', 'data_type': 'field.delim'},
|
|
|
+ {'comment': '\\n', 'col_name': '', 'data_type': 'line.delim'},
|
|
|
+ {'comment': '\\t', 'col_name': '', 'data_type': 'serialization.format'}
|
|
|
+ ],
|
|
|
+ table.properties
|
|
|
+ )
|
|
|
|
|
|
assert_equal('hdfs://localhost:8020/user/hive/warehouse/test_partitions', table.path_location)
|
|
|
|