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 parse bug #2324

Open
huang1101 opened this issue May 16, 2024 · 0 comments
Open

Sql parse bug #2324

huang1101 opened this issue May 16, 2024 · 0 comments

Comments

@huang1101
Copy link

version: dev
SQL:SELECT * FROM ( SELECT d_date, SUM(COALESCE(totals.cumulative_amount, 0)) AS cumulative_amount FROM (SELECT DATE(d_date) AS d_date, SUM(pay_amount) AS cumulative_amount FROM pdd_products_rank WHERE d_date BETWEEN $公共时间1$ AND $公共时间2$ GROUP BY d_date ) AS totals LEFT JOIN (SELECT DATE(d_date) AS date, COUNT(*) AS day_count FROM pdd_products_rank WHERE d_date BETWEEN $公共时间1$ AND $公共时间2$ GROUP BY DATE(d_date) ) AS days ON totals.d_date = days.date WHERE days.day_count GROUP BY d_date ORDER BY d_date ) AS DATART_VTABLE LIMIT 1000 OFFSET 0
DB: MYSQL
EXCEPTION:org.apache.calcite.sql.parser.SqlParseException: Encountered "date" at line 1, column 369.
Was expecting one of:
<QUOTED_STRING> ...
<BRACKET_QUOTED_IDENTIFIER> ...
<QUOTED_IDENTIFIER> ...
<BACK_QUOTED_IDENTIFIER> ...
<HYPHENATED_IDENTIFIER> ...
...
<UNICODE_QUOTED_IDENTIFIER> ...

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