2018-07-26 21:05:09 +00:00
|
|
|
from __future__ import unicode_literals
|
|
|
|
|
|
|
|
TABLE_INPUT = {
|
2019-10-31 15:44:26 +00:00
|
|
|
"Owner": "a_fake_owner",
|
|
|
|
"Parameters": {"EXTERNAL": "TRUE"},
|
|
|
|
"Retention": 0,
|
|
|
|
"StorageDescriptor": {
|
|
|
|
"BucketColumns": [],
|
|
|
|
"Compressed": False,
|
|
|
|
"InputFormat": "org.apache.hadoop.hive.ql.io.parquet.MapredParquetInputFormat",
|
|
|
|
"NumberOfBuckets": -1,
|
|
|
|
"OutputFormat": "org.apache.hadoop.hive.ql.io.parquet.MapredParquetOutputFormat",
|
|
|
|
"Parameters": {},
|
|
|
|
"SerdeInfo": {
|
|
|
|
"Parameters": {"serialization.format": "1"},
|
|
|
|
"SerializationLibrary": "org.apache.hadoop.hive.ql.io.parquet.serde.ParquetHiveSerDe",
|
2018-07-26 21:05:09 +00:00
|
|
|
},
|
2019-10-31 15:44:26 +00:00
|
|
|
"SkewedInfo": {
|
|
|
|
"SkewedColumnNames": [],
|
|
|
|
"SkewedColumnValueLocationMaps": {},
|
|
|
|
"SkewedColumnValues": [],
|
2018-07-26 21:05:09 +00:00
|
|
|
},
|
2019-10-31 15:44:26 +00:00
|
|
|
"SortColumns": [],
|
|
|
|
"StoredAsSubDirectories": False,
|
2018-07-26 21:05:09 +00:00
|
|
|
},
|
2019-10-31 15:44:26 +00:00
|
|
|
"TableType": "EXTERNAL_TABLE",
|
2018-07-26 21:05:09 +00:00
|
|
|
}
|
2018-10-02 16:25:14 +00:00
|
|
|
|
|
|
|
|
|
|
|
PARTITION_INPUT = {
|
|
|
|
# 'DatabaseName': 'dbname',
|
2019-10-31 15:44:26 +00:00
|
|
|
"StorageDescriptor": {
|
|
|
|
"BucketColumns": [],
|
|
|
|
"Columns": [],
|
|
|
|
"Compressed": False,
|
|
|
|
"InputFormat": "org.apache.hadoop.hive.ql.io.parquet.MapredParquetInputFormat",
|
|
|
|
"Location": "s3://.../partition=value",
|
|
|
|
"NumberOfBuckets": -1,
|
|
|
|
"OutputFormat": "org.apache.hadoop.hive.ql.io.parquet.MapredParquetOutputFormat",
|
|
|
|
"Parameters": {},
|
|
|
|
"SerdeInfo": {
|
|
|
|
"Parameters": {"path": "s3://...", "serialization.format": "1"},
|
|
|
|
"SerializationLibrary": "org.apache.hadoop.hive.ql.io.parquet.serde.ParquetHiveSerDe",
|
|
|
|
},
|
|
|
|
"SkewedInfo": {
|
|
|
|
"SkewedColumnNames": [],
|
|
|
|
"SkewedColumnValueLocationMaps": {},
|
|
|
|
"SkewedColumnValues": [],
|
|
|
|
},
|
|
|
|
"SortColumns": [],
|
|
|
|
"StoredAsSubDirectories": False,
|
2018-10-02 16:25:14 +00:00
|
|
|
},
|
|
|
|
# 'TableName': 'source_table',
|
|
|
|
# 'Values': ['2018-06-26'],
|
|
|
|
}
|