diff --git a/src/query/functions/tests/it/scalars/testdata/boolean.txt b/src/query/functions/tests/it/scalars/testdata/boolean.txt index 8eb8817b3d5b5..63f8e4af1869b 100644 --- a/src/query/functions/tests/it/scalars/testdata/boolean.txt +++ b/src/query/functions/tests/it/scalars/testdata/boolean.txt @@ -65,7 +65,7 @@ error: --> SQL:1:1 | 1 | 'a' and 1 - | ^^^ cannot parse to type `BOOLEAN` while evaluating function `to_boolean('a')` in expr `to_boolean('a')`, during run expr: `to_boolean('a') AND to_boolean(1)` + | ^^^ cannot parse to type `BOOLEAN` while evaluating function `to_boolean('a')` in expr `to_boolean('a')`, during run expr: `(to_boolean('a') AND to_boolean(1))` diff --git a/tests/sqllogictests/suites/task/task_dag_test.test b/tests/sqllogictests/suites/task/task_dag_test.test index 0629fdf965cf7..d97b68a3d8aca 100644 --- a/tests/sqllogictests/suites/task/task_dag_test.test +++ b/tests/sqllogictests/suites/task/task_dag_test.test @@ -88,3 +88,19 @@ select name, warehouse, schedule, definition from system.task_history where name ---- mytaskroot mywh CRON 0 0 0 1 1 ? 2100 SELECT 1 +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