Skip to content
New issue

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

how to set temp directory for duckdb ? #2

Closed
djouallah opened this issue Feb 28, 2025 · 1 comment
Closed

how to set temp directory for duckdb ? #2

djouallah opened this issue Feb 28, 2025 · 1 comment

Comments

@djouallah
Copy link

getting this error, due to low Memory, how to set duckdb , temp folder ?


RayTaskError(OutOfMemory): ray::000015.DataSinkTask() (pid=4642, ip=172.28.0.12)
  At least one of the input arguments for this task could not be computed:
ray.exceptions.RayTaskError: ray::000015.DataSinkTask() (pid=4642, ip=172.28.0.12)
  At least one of the input arguments for this task could not be computed:
ray.exceptions.RayTaskError: ray::000014.SqlEngineTask() (pid=4642, ip=172.28.0.12)
                   ^^^^^^^^^^^^^^^^^^^^^^^^^
duckdb.duckdb.OutOfMemoryException: Out of Memory Error: could not allocate block of size 2.0 GiB (10.2 GiB/10.8 GiB used)
Database is launched in in-memory mode and no temporary directory is specified.
Unused blocks cannot be offloaded to disk.

Launch the database with a persistent storage back-end
Or set SET temp_directory='/path/to/tmp.tmp'
@wangrunji0408
Copy link
Collaborator

You can add enable_temp_directory=True to SqlEngineNode or map function.

It is disabled by default because spilling data is very slow.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants