Open
Description
What language are you using?
Python
What version are you using?
0.4.1
What database are you using?
Microsoft SQL Server
What dataframe are you using?
Polars
Can you describe your bug?
Getting RuntimeError: Timed out in bb8 when querying large table. Same code executes when limiting number of rows in query or using partition_on.
What are the steps to reproduce the behavior?
Query a large MSSQL table that takes more than 30 seconds to complete.
Example query / code
This succeeds:
query = 'select top 1000 * from my_large_table'
df = pl.read_database_uri(query=query, uri=connection)
This fails:
query = 'select * from my_large_table'
df = pl.read_database_uri(query=query, uri=connection)
This succeeds after more than a minute but I had to create a copy of the table in a different database and add the row_num column. The source I am trying to query does not have a column I can partition on.
query = 'select * from my_large_table'
df = pl.read_database_uri(query=query, uri=connection, partition_on='row_num', partition_num=10)
What is the error?
RuntimeError: Timed out in bb8.