Repository navigation
Document that DuckDB extension installs need a HOME directory - #74301
Merged
Merged
Conversation
DuckDB installs extensions under the user's home directory and fails with "IO Error: Can't find the home directory" when HOME is unset or empty, which is the default state of an AWS Lambda function. Providing a writable home directory is part of configuring the environment rather than something the provider can guess, since any directory it picked would be discarded when the task exits and so would re-download every extension. Document the requirement in the DuckDB connection docs, in the Amazon DuckDB operator docs where the two S3 extensions are installed by default, and in the Lambda executor docs. Set HOME in the Lambda reference Dockerfile beside the existing AIRFLOW_HOME, which is the same /tmp constraint. Checked against duckdb 1.2.0, 1.3.0, 1.3.2, 1.4.0, 1.4.1, 1.5.0 and 1.5.5: an install fails on every version without a usable HOME, extension_directory stops covering for a missing HOME at 1.5.0, and loading a pre-populated extension_directory with autoinstall_extensions disabled works everywhere.
ferruzzi
requested review from
amoghrajesh,
ashb,
bugraoz93,
gopidesupavan,
jason810496,
jscheffl,
o-nikolas,
potiuk and
vincbeck
as code owners
October 5, 2026 20:15
vincbeck
approved these changes
Oct 5, 2026
o-nikolas
reviewed
Oct 5, 2026
seanghaeli
approved these changes
Oct 6, 2026
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
DuckDB installs extensions under the user's home directory and fails with "IO Error: Can't find the home directory" when HOME is unset or empty, which is the default state of an AWS Lambda function. Providing a writable home directory is part of configuring the environment rather than something the provider can guess, since any directory it picked would be discarded when the task exits and so would re-download every extension.
Document the requirement in the DuckDB connection docs, in the Amazon DuckDB operator docs where the two S3 extensions are installed by default, and in the Lambda executor docs. Set HOME in the Lambda reference Dockerfile beside the existing AIRFLOW_HOME, which is the same /tmp constraint.
Checked against duckdb 1.2.0, 1.3.0, 1.3.2, 1.4.0, 1.4.1, 1.5.0 and 1.5.5: an install fails on every version without a usable HOME, extension_directory stops covering for a missing HOME at 1.5.0, and loading a pre-populated extension_directory with autoinstall_extensions disabled works everywhere.
Follow-up instead of #74126
Was generative AI tooling used to co-author this PR?
Version confirmations done by Claude Opus 5
{pr_number}.significant.rst, in airflow-core/newsfragments. You can add this file in a follow-up commit after the PR is created so you know the PR number.