Hive presto拼花地板表中的时间戳字段显示错误数据
我有一个外部表创建在蜂巢0.131使用拼花地板Hive presto拼花地板表中的时间戳字段显示错误数据,hive,parquet,presto,Hive,Parquet,Presto,我有一个外部表创建在蜂巢0.131使用拼花地板 CREATE external table if not exists tbl ( occurred_at timestamp, user_phone string, usergk BIGINT, enabled boolean, classgk int, title string, eta int,
CREATE external table if not exists tbl (
occurred_at timestamp,
user_phone string,
usergk BIGINT,
enabled boolean,
classgk int,
title string,
eta int,
latitude decimal(9,6),
longitude decimal(9,6),
device_type string,
device_os_version string,
event_at_utc timestamp
)
PARTITIONED BY (country string, occured_date date)
STORED AS parquet
LOCATION 's3://XXX'
当我在HIVE 0.13中查询时,一切看起来都很好,但当我尝试在Presto中对此表进行简单查询时(即从tbl limit 10中选择*),我遇到了一个错误:
Can not read Parquet column: [HiveColumnHandle{clientId=hive,
name=occured_date, hiveType=date, hiveColumnIndex=-1, partitionKey=true}]
java.lang.RuntimeException: java.lang.IllegalArgumentException:
Can not read Parquet column: [HiveColumnHandle{clientId=hive, name=occured_date, hiveType=date, hiveColumnIndex=-1, partitionKey=true}]
当我写下特定的列时(即从tbl限制10中选择发生时),我得到了奇怪的结果,如“14173-10-07 02:42:56”,而在hive中,它显示了有意义的结果
这可能与hive 0.13使用的拼花地板格式有关吗?您解决过吗?