parquet.io.ParquetDecodingException: Can not read value at 0 in block -1 in file

前端 未结 6 723
独厮守ぢ
独厮守ぢ 2020-12-31 01:44

I have saved a remote DB table in Hive using saveAsTable method, now when i try to access the Hive table data using CLI command select * from table_name

6条回答
  •  温柔的废话
    2020-12-31 02:38

    Are you able to use Avro instead of Parquet to store your Hive table? I ran into this issue because I was using Hive's Decimal datatype, and Parquet from Spark doesn't play nice with Decimal. If you post your table schema and some data samples, debugging will be easier.

    Another possible option, from the DataBricks Forum, is to use a Double instead of a Decimal, but that was not an option for my data so I can't report on whether it works.

提交回复
热议问题