Skip to content

BigQuery string literal error in Tesseract #9542

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

Open
itestyoy opened this issue May 4, 2025 · 0 comments
Open

BigQuery string literal error in Tesseract #9542

itestyoy opened this issue May 4, 2025 · 0 comments

Comments

@itestyoy
Copy link

itestyoy commented May 4, 2025

Cube Tesseract generates queries like this with column names with double quotes, but for BigQuery, it is not a valid syntax.

WITH cte_0 AS (
  SELECT
    "tesseract".ad_unit `tesseract__ad_unit`
  FROM
    bi_data_export.cube_export__daily_analysis AS `tesseract`
  GROUP BY
    1
  ORDER BY
    1 ASC
),
cte_1 AS (
  SELECT
    `q_0`.`tesseract__ad_unit` `tesseract__ad_unit`,
    count(count("q_0"."tesseract__ad_unit")) OVER () `tesseract__cohort_user_count`
  FROM
    cte_0 AS `q_0`
  GROUP BY
    1
  ORDER BY
    2 DESC
),
Syntax error: Unexpected string literal "tesseract__ad_unit"

v.1.3.10
CUBEJS_TESSERACT_SQL_PLANNER: true

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant