Skip to content

Azure Extension failing to authenticate/update DuckDB to latest #120

@J-Harmson

Description

@J-Harmson

Hello,

I am new to SQL-Flow and am trying to use it to add Kafka messages to Azure Data Lake Storage Gen2. I believe to do this I need to use the DuckDB Azure Extension: https://duckdb.org/docs/stable/extensions/azure

I am having an issue connecting to my ADLS instance, when trying to use:

commands:
name: load extensions
sql: |
INSTALL azure;
LOAD azure;
SET azure_storage_connection_string = '{{ SQLFLOW_AZURE_CONNECTION_STRING }}';

...

COPY sqlflow_sink_batch
TO 'abfss://[container]@[account name].dfs.core.windows.net/[path]'
(FORMAT 'parquet', PARTITION_BY (SourceDatePartition), OVERWRITE_OR_IGNORE 1);

the connection string I am using is in this format: DefaultEndpointsProtocol=https;AccountName=[account name];AccountKey=[key];EndpointSuffix=core.windows.net

I get a DuckDB error stating it cannot create the directory. I have tried opening my test ADLS instance up to rule out any networking issues and it still can't get through, meaning it must be a permissions issue. When further investigating, it looks like the version of DuckDB is out of date (0.9.2, latest is 1.2). In 0.9.2, the Azure Extension was in experimental: https://duckdb.org/docs/0.9/extensions/azure with more authentication features available in 0.9.3.

Am I doing something wrong? and also can the version of DuckDB also be updated to a more recent version?

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions