Skip to content

Number exceeds maximum value that can be represented #301

Answered by wangxiaoying
schakhboz asked this question in Q&A
Discussion options

You must be logged in to vote

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 the TRUNC() 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.

Replies: 1 comment

Comment options

You must be logged in to vote
0 replies
Answer selected by schakhboz
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Category
Q&A
Labels
None yet
2 participants