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

DBeaver (JDBC) not displaying view definition #6485

Closed
2 tasks done
Alex-Monahan opened this issue Feb 27, 2023 · 7 comments
Closed
2 tasks done

DBeaver (JDBC) not displaying view definition #6485

Alex-Monahan opened this issue Feb 27, 2023 · 7 comments

Comments

@Alex-Monahan
Copy link
Contributor

What happens?

DBeaver is not able to generate view definitions.

To Reproduce

Right clicking on a view in the left hand panel and generating the DDL does not show the view definition text. I receive the same error when I try to inspect the view itself, so DBeaver just isn't able to find the view definition in some way.

The view was generated with these statements:

create table testing as select 42 as test_col;

create view woot as select * from testing limit 1;

image

image

OS:

Windows 10

DuckDB Version:

0.7.1

DuckDB Client:

JDBC

Full Name:

Alex Monahan

Affiliation:

DuckDB Labs and Intel

Have you tried this on the latest master branch?

  • I agree

Have you tried the steps to reproduce? Do they include all relevant data and configuration? Does the issue you report still appear there?

  • I agree
@hannes hannes added the JDBC label Mar 20, 2023
@chengjie0929
Copy link

I would like tad to be transformed into a duckdb proprietary database management tool based on the current functionality. Because dbeaver is too problematic for duckdb.

@chengjie0929
Copy link

What duckdb currently lacks is its own management tool, something similar to plsql developer.

@Mause
Copy link
Member

Mause commented Apr 26, 2023

I had a brief look into this issue the other day, and in short, dbeaver doesn't fetch a prerendered ddl string from the driver, instead it queries the driver for the columns, etc, and then depending on which dialect is selected in dbeaver, generates the ddl string using a string template.

This would be fine if you could easily switch to the postgres dialect (instead of the generic one that DuckDB uses by default in dbeaver), but we're not yet compatible enough with postgres for that to work.

Depending on how much we want this feature, we may need to contribute a DuckDB dialect to dbeaver

@LonwoLonwo
Copy link

Hello @Mause

Where can I find

prerendered ddl string from the driver

to check how we can read view definitions for DuckDB?

@Mause
Copy link
Member

Mause commented Jul 28, 2023

Hello @Mause

Where can I find

prerendered ddl string from the driver

to check how we can read view definitions for DuckDB?

select sql from duckdb_tables();

And similar queries for other things

Copy link

This issue is stale because it has been open 90 days with no activity. Remove stale label or comment or this will be closed in 30 days.

Copy link

This issue was closed because it has been stale for 30 days with no activity.

@github-actions github-actions bot closed this as not planned Won't fix, can't repro, duplicate, stale Mar 30, 2024
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

6 participants