【发布时间】:2019-03-06 22:47:23
【问题描述】:
我在尝试将数据从 S3 中的 Parquet 复制到 Redshift 时遇到此错误:
S3 Query Exception (Fetch). Task failed due to an internal error. File
'https://...../part-00000-xxxxx.snappy.parquet
has an incompatible Parquet schema for column 's3://table_name/.column_name'.
Column type: INT, Parquet schema:
optional fixed_len_byte_array COLUMN_NAME
我怀疑这是因为 Parquet 文件的数字/十进制类型具有比 INT 列更精确的精度,但我相信所有实际值都在它们适合的范围内。 (错误没有指定行号。)
有没有办法强制在 COPY 上进行类型转换,并在单个行的基础上处理失败(如 CSV)而不是使整个文件失败?
【问题讨论】:
-
pg_catalog.stl_load_errors中是否有与此负载相关的行? -
以上错误来自
SVL_S3LOG。STL_LOAD_ERRORS为空。