Search before asking
Version
Reproduced with the table stream regression case on local Doris HEAD d4a077caf8a.
Test environment:
regression-test/suites/table_stream_p0/test_table_stream_cancel_alter.groovy
remote log: /mnt/disk1/jianxu/case_output/doris/testrun/table_stream_p0_20260708/test_table_stream_cancel_alter.final.log
FE: 172.20.49.4:9030
What's Wrong?
CANCEL ALTER STREAM is not accepted by the SQL parser. The parser currently expects TABLE after CANCEL ALTER, so the statement fails before it can reach table stream alter-cancel handling.
Failing SQL:
CANCEL ALTER STREAM s_cancel;
Actual error:
errCode = 2, detailMessage =
mismatched input 'STREAM' expecting 'TABLE'(line 1, pos 13)
What You Expected?
CANCEL ALTER STREAM s_cancel should be parsed as a table stream statement. If there is no in-progress alter stream job, it should return a clear semantic error, for example:
How to Reproduce?
Regression case:
regression-test/suites/table_stream_p0/test_table_stream_cancel_alter.groovy
Minimal flow:
CREATE TABLE base_cancel (
k1 INT,
v1 INT
)
DUPLICATE KEY(k1)
DISTRIBUTED BY HASH(k1) BUCKETS 1
PROPERTIES (
"replication_num" = "1",
"binlog.enable" = "true",
"binlog.format" = "ROW"
);
CREATE STREAM s_cancel ON TABLE base_cancel
PROPERTIES ("type" = "append_only");
CANCEL ALTER STREAM s_cancel;
Regression Test Result
suite: test_table_stream_cancel_alter
command: CANCEL ALTER STREAM s_cancel
expected: exception message contains "no alter stream job"
actual: mismatched input 'STREAM' expecting 'TABLE'(line 1, pos 13)
Anything Else?
Tracking issue: #65265
Are you willing to submit PR?
Search before asking
Version
Reproduced with the table stream regression case on local Doris HEAD
d4a077caf8a.Test environment:
What's Wrong?
CANCEL ALTER STREAMis not accepted by the SQL parser. The parser currently expectsTABLEafterCANCEL ALTER, so the statement fails before it can reach table stream alter-cancel handling.Failing SQL:
Actual error:
What You Expected?
CANCEL ALTER STREAM s_cancelshould be parsed as a table stream statement. If there is no in-progress alter stream job, it should return a clear semantic error, for example:How to Reproduce?
Regression case:
Minimal flow:
Regression Test Result
Anything Else?
Tracking issue: #65265
Are you willing to submit PR?