Open gh-dzuluaga opened 4 years ago
Would you like to try to come up with a test case reproducing the problem? See https://github.com/prestosql/presto-python-client/blob/a7438556213bcf954f8a7a5063c7823bbb177edb/integration_tests/test_dbapi.py#L59-L68 for some example test using dockerized Presto
Hello there.
I've found that these two examples will not always return the same thing on large queries:
fetchall
iterator
The
fetchall
approach ends up returning an empty list every time I use it when running large queries, but theiterator
approach prints the result successfullyDoes anyone know why this may be happening?
I don't know how I should supply a working example to debug this problem, as my queries all contain domain logic of my company. Nevertheless, I can say that I'm connecting around 8 Postgres databases with 100k rows per table and equal schemas, and I union the tables from all databases together with UNION views, like this:
And the big query that I'm running uses these type of views