【发布时间】:2020-04-20 18:59:08
【问题描述】:
我想使用 PySpark 从包含 UINT64 列的 parquet 文件中提取数据,这些列当前映射到 Spark 中的 typeNotSupported()。我不需要这些列,所以我希望我可以通过以下命令使用谓词下推来拉出其他列:
spark.read.parquet('path/to/dir/').select('legalcol1', 'legalcol2')
但是,我仍然遇到以下错误。
An error was encountered:
An error occurred while calling o86.parquet.
: org.apache.spark.SparkException: Job aborted due to stage failure: Task 0 in stage 0.0 failed 4 times,
most recent failure: Lost task 0.3 in stage 0.0 (TID 3, ..., executor 1):
org.apache.spark.sql.AnalysisException: Parquet type not supported: INT64 (UINT_64);
有没有办法在不引发上述错误的情况下摄取这些数据?
【问题讨论】:
-
您使用的是哪个版本的 spark ?
-
我使用的是 2.4.3 版本
-
AFAIK 与 spark 是不可能的。可能您必须使用镶木地板工具进行这些转换?
标签: apache-spark pyspark