Number exceeds maximum value that can be represented #301
-
Hi all !
... etc. For retrieving rows I am using connectorx's
But when the number of rows reaches 4 million, this exception throws:
How can I fix this? |
Beta Was this translation helpful? Give feedback.
Replies: 1 comment
-
Hi @schakhboz , to me it looks like the error is caused by a decimal value which As for chunking, we actually use less memory than pandas (like this benchmark fetching 60M rows and 16 columns). So maybe you can try to increase the chunk size (enlarge the filter range) if this was the original chunk size you use with pandas. Of course it will also depends your machine's memory size. |
Beta Was this translation helpful? Give feedback.
Hi @schakhboz , to me it looks like the error is caused by a decimal value which
rust_decimal
can not represent (like mentioned here and similar to this issue). Could you please check whether your returned data contains such decimal value and maybe one work around is to use theTRUNC()
function in the query for postgres.As for chunking, we actually use less memory than pandas (like this benchmark fetching 60M rows and 16 columns). So maybe you can try to increase the chunk size (enlarge the filter range) if this was the original chunk size you use with pandas. Of course it will also depends your machine's memory size.