Partition Hive table by existing field?

后端 未结 4 1820
借酒劲吻你
借酒劲吻你 2020-12-19 07:00

Can I partition a Hive table upon insert by an existing field?

I have a 10 GB file with a date field and an hour of day field. Can I load this file into a table, the

4条回答
  •  予麋鹿
    予麋鹿 (楼主)
    2020-12-19 07:57

    I'm not super sure about this, but something like this might work

    INSERT OVERWRITE TABLE tealeaf_event
    SELECT col1 as tealeaf_col1, ..., datestring as ds;
    

提交回复
热议问题