-
Notifications
You must be signed in to change notification settings - Fork 1.8k
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
Unexpected string literal Bigquery #182
Comments
@tonxxd Hey Enrico! Thanks for posting this! Yep. I think I understand what's going on. |
Need to support sql generation for nested fields by returning |
@tonxxd Hey Enrico! Just fixed. Could you please update version and check? |
Hey! Thank you very much for the fast response. I updated the package, now some fields seam ok, others not. For example i have a repeated nested field that throws this error while querying Error: Error: Cannot access field items on a value with type ARRAY<STRUCT<items ARRAY<STRUCT<total FLOAT64, brandId STRING, quantity INT64, ...>>, shipping_address STRUCT<zip STRING, country STRING, street STRING, ...>, shipping_method STRING, ...>> at [2:28] |
Is there a fix for the new error like
or should I open another bug for this? |
Describe the bug
Hello, I am using cubejs with BigQuery where I store analytics data. There are nested fields in the database.
When using the cubejs server ui in the schema section to automatically generate the schema for my table I am not able to run queries against BigQuery since i get this error
Error: Syntax error: Unexpected string literal "parentField.childField" at [:] when querying.
The sql field generated in the schema is like
${CUBE}."parentField.childField"
It should be
${CUBE}.parentField.childField
Editing the schema file removing " solve the issue
The text was updated successfully, but these errors were encountered: