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

Update duckdb driver #2508

Closed
JCoder01 opened this issue Mar 27, 2024 · 2 comments
Closed

Update duckdb driver #2508

JCoder01 opened this issue Mar 27, 2024 · 2 comments

Comments

@JCoder01
Copy link

Describe the bug
Sql Parser doesn't understand "CREATE SECRET" syntax
https://duckdb.org/docs/sql/statements/create_secret.html

To Reproduce
1: Create duckdb connection
execute
CREATE SECRET (TYPE S3, REGION 'us-east-1', PROVIDER CREDENTIAL_CHAIN)

ERROR:
SQL Error: java.sql.SQLException: Parser Error: syntax error at or near "SECRET"
LINE 1: CREATE SECRET (TYPE S3, REGION 'us-east-1', PR...

@LonwoLonwo
Copy link
Member

Hello @JCoder01

As I can see, secret creation is available only from DuckDB version 0.10.

https://duckdb.org/docs/sql/statements/create_secret.html

In CloudBeaver DuckDB version is 0.9.2

<dependencies>
        <dependency>
            <groupId>org.duckdb</groupId>
            <artifactId>duckdb_jdbc</artifactId>
            <version>0.9.2</version>
        </dependency>
</dependencies>

So, we need to upgrade the DuckDB driver.
Thanks for the report.

As a workaround for you for now - you can create a new DuckDB2 driver with correct library manually: https://github.com/dbeaver/cloudbeaver/wiki/Adding-new-database-drivers

@LonwoLonwo LonwoLonwo added enhancement and removed bug Something isn't working wait for review labels Mar 27, 2024
@LonwoLonwo LonwoLonwo changed the title Unabled to create secret in duckdb Update duckdb driver Mar 27, 2024
@dariamarutkina dariamarutkina added this to the 24.0.5 milestone May 7, 2024
@EvgeniaBzzz
Copy link
Contributor

@JCoder01 DuckDB has been updated to version 0.10.2 in CloudBeaver 24.0.5.
Thank you for being with us 🦫

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

No branches or pull requests

4 participants