Thanks to visit codestin.com
Credit goes to github.com

Skip to content

Big query PTF queries fails when projection contains now lowercase column names #16075

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

Closed
RameshByndoor opened this issue Feb 12, 2023 · 0 comments · Fixed by #16077
Closed
Assignees
Labels
bug Something isn't working

Comments

@RameshByndoor
Copy link
Member

Description:

Big query polymorphic table function (PTF) query fails when the output projection of native query involves any non-lower case column names.
Query SELECT * FROM TABLE(bigquery.system.query(query => 'select 1 as lower, 2 as UPPER, 3 as miXED'))

The above query throws an Internal server exception due to a mismatch in the following line since the Trino internal column name doesn't match the projected column name.
https://github.com/trinodb/trino/blob/406/plugin/trino-bigquery/src/main/java/io/trino/plugin/bigquery/BigQueryMetadata.java#L710

Another workaround without the fix is always to alias the column names to be lowercase.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug Something isn't working
1 participant