Cloudera 5.6:Parquet 不支持日期。参见 HIVE-6384

2024-01-16

我目前正在使用 Cloudera 5.6 尝试根据另一个表在 hive 表中创建镶木地板格式表,但遇到错误。

create table sfdc_opportunities_sandbox_parquet like 
sfdc_opportunities_sandbox STORED AS PARQUET

错误信息

Parquet does not support date. See HIVE-6384

我读到 hive 1.2 已修复此问题,但 Cloudera 5.6 和 5.7 未附带 hive 1.2。有没有人找到解决这个问题的方法?


除了使用其他数据类型,例如时间戳 https://cwiki.apache.org/confluence/display/Hive/LanguageManual+Types#LanguageManualTypes-Date/TimeTypes或其他存储格式,如ORC https://cwiki.apache.org/confluence/display/Hive/LanguageManual+ORC,如果对所使用的 Hive 版本和 Parquet 文件存储格式存在依赖性,则可能没有办法解决。

根据ClouderasCDH 5 打包和 tarball 信息 https://www.cloudera.com/documentation/enterprise/release-notes/topics/cdh_vd_cdh_package_tarball.html,整个分支 5 充满了阿帕奇镶木地板 https://parquet.apache.org/在 v1.5.0 和阿帕奇蜂巢 https://hive.apache.org/在 v1.1.0 中。

日期在 ParquetSerde 中实现为HIVE-8119 https://issues.apache.org/jira/browse/HIVE-8119从 Hive 1.2 开始。

本文内容由网友自发贡献,版权归原作者所有,本站不承担相应法律责任。如您发现有涉嫌抄袭侵权的内容,请联系:hwhale#tublm.com(使用前将#替换为@)

Cloudera 5.6:Parquet 不支持日期。参见 HIVE-6384 的相关文章

随机推荐