Closed xudong963 closed 2 days ago
Some tests still need to fix the format.
What bug does this fix? maybe add a test.
What bug does this fix? maybe add a test.
In fact, there is no bug, and
has a higher priority than or
(I changed the title).
By adding ()
can make explain clearer.
Hi @xudong963 Could you add the following logic tests on https://github.com/datafuselabs/databend/blob/main/tests/sqllogictests/suites/task/task_dag_test.test for this PR.
statement ok
DROP TASK IF EXISTS mytaskchild2
statement ok
CREATE TASK mytaskchild2
WAREHOUSE = 'mywh'
AFTER 'mytaskroot'
WHEN ((SYSTEM$STREAM_HAS_DATA('stream1') AND SYSTEM$STREAM_HAS_DATA('stream2')) OR (SYSTEM$STREAM_HAS_DATA('stream3') AND SYSTEM$STREAM_HAS_DATA('stream4'))) AND SYSTEM$STREAM_HAS_DATA('stream5')
AS SELECT 1;
query SSSS
select name, warehouse, schedule, definition, condition_text, after from system.tasks where name = 'mytaskchild2'
----
mytaskchild2 mywh NULL SELECT 1 ((SYSTEM$STREAM_HAS_DATA('stream1') AND SYSTEM$STREAM_HAS_DATA('stream2')) OR (SYSTEM$STREAM_HAS_DATA('stream3') AND SYSTEM$STREAM_HAS_DATA('stream4'))) AND SYSTEM$STREAM_HAS_DATA('stream5') mytaskroot
I hereby agree to the terms of the CLA available at: https://docs.databend.com/dev/policies/cla/
Summary
Tests
Type of change
This change isโ