【发布时间】:2019-12-30 22:18:13
【问题描述】:
我的 hive 版本是 1.2.0
我正在我的 hbase 表已经存在的地方进行 hive hbase 集成。
在创建 hive 表时,我正在检查是否可以使用一些 hive 的内置日期函数作为虚拟列/派生列的候选者,就像这样 -
create external table `Hive_Test`(
*existing hbase columns*,
*new_column* AS to_date(from_unixtime(unix_timestamp(*existing_column*,'yyyy/MM/dd HH:mm:ss')...
)CLUSTERED BY (..) SORTED BY (new_colulmn) INTO n BUCKETS
..
WITH SERDEPROPERTIES(
hbase.columns.mappings=':key,cf:*,:timestamp',
..
)
如果有任何其他方式可以在创建表中使用内置函数功能,请告诉我。 谢谢。
【问题讨论】: