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

posta un anno fa312 visualizzazioni
1 Risposta
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
TECNICO DI SUPPORTO
con risposta un anno fa

Accesso non effettuato. Accedi per postare una risposta.

Una buona risposta soddisfa chiaramente la domanda, fornisce un feedback costruttivo e incoraggia la crescita professionale del richiedente.

Linee guida per rispondere alle domande