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

Setting duckdb local configuration options #1052

Open
loicalleyne opened this issue Jul 18, 2024 · 0 comments
Open

Setting duckdb local configuration options #1052

loicalleyne opened this issue Jul 18, 2024 · 0 comments

Comments

@loicalleyne
Copy link

I'm trying to get duckdb working with Superset to read an Iceberg table.
I imagine I will need to load https and iceberg extensions to do so, however when I put the following in connection_args

{
  "connect_args":{
        "preload_extensions": ["https"]
        }
}

I get the following error:

ERROR: (builtins.NoneType) None
[SQL: (duckdb.duckdb.IOException) IO Error: Can't find the home directory at ''
Specify a home directory using the SET home_directory='/path/to/dir' option.

I've tried

{
  "connect_args":{
        "preload_extensions": ["https"],
        "config": {
          "home_directory":"/usr/local/src/superset"
        }
      }
}

but then I get

ERROR: (builtins.NoneType) None
[SQL: (duckdb.duckdb.InvalidInputException) Invalid Input Error: Could not set option "home_directory" as a global option

Is there a way to set a local configuration option?

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

1 participant