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

[Bug] Cannot create MATERIALIZED VIEW when group_commit is in 'sync_mode' mode #47301

Open
2 of 3 tasks
wangwq10 opened this issue Jan 22, 2025 · 0 comments
Open
2 of 3 tasks

Comments

@wangwq10
Copy link

Search before asking

  • I had searched in the issues and found no similar issues.

Version

2.1.5 rc02

What's Wrong?

when set group_commit to sync_mode :
+-------------------------------------+------------+---------------+---------+
| Variable_name | Value | Default_Value | Changed |
+-------------------------------------+------------+---------------+---------+
| group_commit | sync_mode | off_mode | 1 |

SQL quite simple for example :
CREATE MATERIALIZED VIEW IF NOT EXISTS %s.%s_stat
REFRESH AUTO ON SCHEDULE EVERY 30 MINUTE
PARTITION BY(__dt__)
DISTRIBUTED BY RANDOM BUCKETS AUTO
AS
SELECT service_name
FROM
(SELECT
service_name,
FROM %s.%s
) t
GROUP BY
service_name,
It shows error like below:

ERROR 1105 (HY000): errCode = 2, detailMessage = Syntax error in line 1:
CREATE MATERIALIZED VIEW IF NOT EXISTS xxxxxxxx...
^
Encountered: IF
Expected: IF is keyword, maybe IF

What You Expected?

It should create successful as same as set group_commit to 'off_mode'

How to Reproduce?

No response

Anything Else?

No response

Are you willing to submit PR?

  • Yes I am willing to submit a PR!

Code of Conduct

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