Open taitung opened 1 year ago
@taitung Thanks for posting this one! Was it generated this way?
The same error that is shown in the video was tested with version 0.33.15
https://github.com/cube-js/cube/assets/1073330/27e3ae80-02f8-4027-a330-e974dfdf62fb
@paveltiunov, sorry that I didn't mention the db I connected to. It is BigQuery
I'm having the same problem, except mine wasn't generated with the quotes for the tables' names and adding the double quotes is giving the following error: Error: TypeError: Cannot convert undefined or null to object. Any suggestions on how I should proceed?
I was able to reproduce this on the latest (v0.36.2) version of Cube, both in Cube Core and Cube Cloud.
It looks like Cube handles lowercase schema/table names just fine because it does not enclose them into quotes. However, in case of uppercase schema/table names, Cube encloses them in backticks and generates incorrect YAML:
Describe the bug
version Cube Store (0.33.14) Cube API server (0.33.14)
To Reproduce After selecting the
Data Model
tab on the playground, I ticked some tables and then clickedGenerate Data Model
to generate the models withYAML
format.. Then I select the tab
Playground
and the error of bad indentation pops up.workaround Add double quotes to the string of
sql_table
. For example, sql_table: "`ODS`.`CAMPAIGN_EMAILS`"