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: Selecting array of structs returns error #19309

Open
xxchan opened this issue Nov 8, 2024 · 2 comments
Open

DBeaver: Selecting array of structs returns error #19309

xxchan opened this issue Nov 8, 2024 · 2 comments
Labels
type/bug Something isn't working
Milestone

Comments

@xxchan
Copy link
Member

xxchan commented Nov 8, 2024

Describe the bug

select array[(1,2)]::struct<a integer, b integer>[] as measurements;

returns Cannot invoke "String.hashCode()" because "typeName" is null in DBeaver SQL console

dbeaver/dbeaver#36198

Error message/log

No response

To Reproduce

No response

Expected behavior

No response

How did you deploy RisingWave?

No response

The version of RisingWave

No response

Additional context

No response

@xxchan xxchan added the type/bug Something isn't working label Nov 8, 2024
@github-actions github-actions bot added this to the release-2.2 milestone Nov 8, 2024
@ShadelessFox
Copy link

I believe this is a bug on the database side. The ResultSetMetaData#getColumnTypeName method returns null for such a column.

Is there a way to obtain a type name for complex columns? If PostgreSQL's JDBC driver is incompatible with your database, could you offer a different solution?

@ShadelessFox
Copy link

The JDBC metadata also incorrectly reports the second column being of type varchar:

select (1,2)::struct<a integer, b integer> as measurement;

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
type/bug Something isn't working
Projects
None yet
Development

No branches or pull requests

2 participants