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

SQL JSON_OBJECT() function results in RUNTIME_FAILURE when querying INFORMATION_SCHEMA.COLUMNS #16356

Open
christian-schlichtherle opened this issue Apr 30, 2024 · 0 comments

Comments

@christian-schlichtherle

Affected Version

Druid 29.0.1

Description

Running the following query

select JSON_OBJECT('name': COLUMN_NAME, 'type': DATA_TYPE)
from INFORMATION_SCHEMA.COLUMNS

produces

Error: RUNTIME_FAILURE (OPERATOR)

cannot translate call json_object($t17, $t18, $t3, $t19, $t7)

java.lang.RuntimeException

Note that the error message quotes the json_object call to receive five parameters, but maybe that's an unrelated internal detail.

For comparison, the following works (but is useless):

select JSON_OBJECT('name': 'foo', 'type': 'VARCHAR')
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

1 participant