小编Sar*_*gan的帖子

AWS Athena: HIVE_BAD_DATA ERROR: Field type DOUBLE in parquet is incompatible with type defined in table schema

I use AWS Athena to query some data stored in S3, namely partitioned parquet files with pyarrow compression.

I have three columns with string values, one column called "key" with int values and one column called "result" which have both double and int values.

With those columns, I created Schema like:

create external table (
    key int,
    result double,
    location string,
    vehicle_name string.
    filename string
)
Run Code Online (Sandbox Code Playgroud)

When I queried the table, I would get

HIVE_BAD_DATA: Field results type INT64 in …

hive parquet amazon-athena pyarrow

4
推荐指数
1
解决办法
7468
查看次数

标签 统计

amazon-athena ×1

hive ×1

parquet ×1

pyarrow ×1