GENERIC_INTERNAL_ERROR: integer overflow

0

Im receiving this error after crawling my table , but there is not more about the error , How can one get more details about the issue. Im crawling parquet files in s3

This query ran against the "searchdb" database, unless qualified by the query. Please post the error message on our forum or contact customer support with Query Id: 5f2017d7-637f-441f-b063-2b9dfc93fb29

已提問 1 年前檢視次數 312 次
1 個回答
0

Hello,

The error “integer overflow” occurs when a numeric value is larger than the range of an integer where the maximum value allowed for an integer is "2147483647” as mentioned here https://docs.aws.amazon.com/athena/latest/ug/data-types.html

As you may know, Athena uses Presto as a query engine in the backend, So when Presto reads a Parquet file, it attempts to get the chunk size as an integer. If the total chunk size in bytes is greater than the maximum value for an integer, Presto will return an integer overflow error.

There are few options to narrow down which column could be causing the issue :

  1. Run a simple select query on the individual columns and determine which succeed and which fail with the "GENERIC_INTERNAL_ERROR: integer overflow" error. OR
  2. Inspect the metadata of the parquet file using a tool or library like Pyarrow or parquet-tools.



As a workaround, it is suggested to use smaller block size for parquet depending upon how you are generating the parquet data
.In Spark you can try setting "parquet.block.size" and "dfs.blocksize”. Please find the 3rd party guide below 
http://what-when-how.com/Tutorial/topic-2059e313/Hadoop-The-Definitive-Guide-457.html


I hope the above information helps!

Thank you!

AWS
支援工程師
已回答 1 年前

您尚未登入。 登入 去張貼答案。

一個好的回答可以清楚地回答問題並提供建設性的意見回饋,同時有助於提問者的專業成長。

回答問題指南