1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 32 33 34
|
hive> show create table tbl_test; OK CREATE TABLE `tbl_test`( `channel_id` string, `uuid` string, `channel_name` string, `channel_status` string, `tv_channel_logo` string, `phone_channel_logo` string, `definition_type` string COMMENT '频道码率', `create_datetime` string, `update_datetime` string) PARTITIONED BY ( `province_alias` string, `dt` string) ROW FORMAT SERDE 'org.apache.hadoop.hive.ql.io.orc.OrcSerde' STORED AS INPUTFORMAT 'org.apache.hadoop.hive.ql.io.orc.OrcInputFormat' OUTPUTFORMAT 'org.apache.hadoop.hive.ql.io.orc.OrcOutputFormat' LOCATION 'hdfs://ycluster/user/hive/warehouse/ods.db/cos_channel_v2_bak_20210630' TBLPROPERTIES ( 'last_modified_by'='data-platform', 'last_modified_time'='1628153252', 'spark.sql.create.version'='2.2 or prior', 'spark.sql.sources.schema.numPartCols'='2', 'spark.sql.sources.schema.numParts'='1', 'spark.sql.sources.schema.part.0'='{\"type\":\"struct\",\"fields\":[{\"name\":\"channel_id\",\"type\":\"string\",\"nullable\":true,\"metadata\":{}},{\"name\":\"uuid\",\"type\":\"string\",\"nullable\":true,\"metadata\":{}},{\"name\":\"channel_name\",\"type\":\"string\",\"nullable\":true,\"metadata\":{}},{\"name\":\"channel_status\",\"type\":\"string\",\"nullable\":true,\"metadata\":{}},{\"name\":\"tv_channel_logo\",\"type\":\"string\",\"nullable\":true,\"metadata\":{}},{\"name\":\"phone_channel_logo\",\"type\":\"string\",\"nullable\":true,\"metadata\":{}},{\"name\":\"definition_type\",\"type\":\"string\",\"nullable\":true,\"metadata\":{\"\u9891\u9053\u7801\u7387\"}},{\"name\":\"create_datetime\",\"type\":\"string\",\"nullable\":true,\"metadata\":{}},{\"name\":\"update_datetime\",\"type\":\"string\",\"nullable\":true,\"metadata\":{}},{\"name\":\"province_alias\",\"type\":\"string\",\"nullable\":true,\"metadata\":{}},{\"name\":\"dt\",\"type\":\"string\",\"nullable\":true,\"metadata\":{}}]}', 'spark.sql.sources.schema.partCol.0'='province_alias', 'spark.sql.sources.schema.partCol.1'='dt', 'transient_lastDdlTime'='1628650471') Time taken: 0.041 seconds, Fetched: 31 row(s)
|