You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Parser throw syntax error while parsing ALTER TABLE query with MODIFY TTL and other commands.
Does it reproduce on recent release?
Yes, almost all releases have this problem.
How to reproduce
When we type such a sql, it causes syntax error.
> ALTER TABLE t MODIFY TTL d + toIntervalDay(1), ADD COLUMN c Date
Syntax error: failed at position 50 ('column'):
alter table t modify ttl d + interval 1 day, add column c Date;
Expected one of: token, Comma, Arrow, Dot, UUID, DoubleColon, MOD, DIV, NOT, BETWEEN, LIKE, ILIKE, NOT LIKE, NOT ILIKE, IN, NOT IN, GLOBAL IN, GLOBAL NOT IN, IS, AND, OR, QuestionMark, INTO OUTFILE, FORMAT, SETTINGS, end of query
But, if we put the MOFITY TTL element to the last, everything is ok.
> ALTER TABLE t ADD COLUMN c Date, MODIFY TTL d + toIntervalDay(1)
ALTER TABLE t
ADD COLUMN `c` Date,
MODIFY TTL d + toIntervalDay(1)
Query id: 7124ca11-3e98-4324-b3e7-399cc99ee010
0 rows in set. Elapsed: 0.004 sec.
Both AlterCommandList and TTLExpressionList are separate by COMMA , which may cause ambiguous behavior.
The text was updated successfully, but these errors were encountered:
Describe what's wrong
Parser throw syntax error while parsing ALTER TABLE query with MODIFY TTL and other commands.
Does it reproduce on recent release?
Yes, almost all releases have this problem.
How to reproduce
When we type such a sql, it causes syntax error.
But, if we put the MOFITY TTL element to the last, everything is ok.
Both
AlterCommandList
andTTLExpressionList
are separate by COMMA , which may cause ambiguous behavior.The text was updated successfully, but these errors were encountered: