We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
I have checked that this issue has not already been reported.
I have confirmed this bug exists on the latest version of Polars.
I use Polars to read several parquet files. I also put it in an async loop to use it with asyncio. More or less the code is this:
def _parquet_file_to_df(file_path: str, columns: tuple[str, ...]) -> polars.DataFrame: return polars.read_parquet( file_path, columns=list(columns) if columns else None, use_pyarrow=True ) async def main() -> None: loop = asyncio.get_running_loop() for file in [...]: await loop.run_in_executor(None, func) if __name__ == "__main__": asyncio.run(main()) print("done")
Sometimes my program does not terminate even after printing done. Here some pieces of the stack trace:
done
I am not sure the problem is 100% related to Polars. Can you help me understand the bug?
The program terminates execution
---Version info--- Polars: 0.15.16 Index type: UInt32 Platform: Linux-5.13.0-52-generic-x86_64-with-glibc2.35 Python: 3.10.6 (main, Nov 14 2022, 16:10:14) [GCC 11.3.0] ---Optional dependencies--- OpenBLAS WARNING - could not determine the L2 cache size on this system, assuming 256k pyarrow: 10.0.1 pandas: 1.5.3 numpy: 1.24.1 fsspec: <not installed> connectorx: <not installed> xlsx2csv: <not installed> deltalake: <not installed> matplotlib: 3.6.3
The text was updated successfully, but these errors were encountered:
Does your event loop run in threads or process pools?
Sorry, something went wrong.
@ritchie46 the default one that is a ThreadPool
Can you make an MWE? I have no clue.
@ritchie46 it seems that my issue is this. So not related to Polars 🙏🏼
No branches or pull requests
Polars version checks
I have checked that this issue has not already been reported.
I have confirmed this bug exists on the latest version of Polars.
Issue description
I use Polars to read several parquet files. I also put it in an async loop to use it with asyncio. More or less the code is this:
Sometimes my program does not terminate even after printing
done
. Here some pieces of the stack trace:I am not sure the problem is 100% related to Polars. Can you help me understand the bug?
Reproducible example
Expected behavior
The program terminates execution
Installed versions
The text was updated successfully, but these errors were encountered: