Skip to content

Commit

Permalink
update planner test
Browse files Browse the repository at this point in the history
Signed-off-by: Runji Wang <wangrunji0408@163.com>
  • Loading branch information
wangrunji0408 committed Dec 25, 2023
1 parent 1f7831f commit 582dde7
Show file tree
Hide file tree
Showing 3 changed files with 21 additions and 14 deletions.
5 changes: 3 additions & 2 deletions src/frontend/planner_test/tests/testdata/output/expr.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -592,8 +592,9 @@
batch_error: |
Expr error
Caused by:
division by zero
Caused by these errors (recent errors listed first):
1: in function "divide"
2: division by zero
- sql: |
select * from abs(-1);
batch_plan: 'BatchValues { rows: [[1:Int32]] }'
Expand Down
5 changes: 3 additions & 2 deletions src/frontend/planner_test/tests/testdata/output/format.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -21,8 +21,9 @@
batch_error: |
Expr error
Caused by:
too few arguments for format()
Caused by these errors (recent errors listed first):
1: in function "format"
2: too few arguments for format()
- sql: |
SELECT format('Testing %s, %s, %s, %', 'one', 'two', 'three');
batch_error: |
Expand Down
25 changes: 15 additions & 10 deletions src/frontend/planner_test/tests/testdata/output/range_scan.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -35,35 +35,39 @@
batch_error: |
Expr error
Caused by:
division by zero
Caused by these errors (recent errors listed first):
1: in function "divide"
2: division by zero
- before:
- create_table_and_mv
sql: |
SELECT * FROM orders_count_by_user WHERE user_id = 2147483647 + 1
batch_error: |
Expr error
Caused by:
numeric out of range
Caused by these errors (recent errors listed first):
1: in function "add"
2: numeric out of range
- before:
- create_table_and_mv
sql: |
SELECT * FROM orders_count_by_user WHERE user_id = 'a'
batch_error: |
Expr error
Caused by:
invalid input syntax for type bigint: "a"
Caused by these errors (recent errors listed first):
1: in function "cast"
2: invalid input syntax for type bigint: "a"
- before:
- create_table_and_mv
sql: |
SELECT * FROM orders_count_by_user WHERE user_id > 'a'
batch_error: |
Expr error
Caused by:
invalid input syntax for type bigint: "a"
Caused by these errors (recent errors listed first):
1: in function "cast"
2: invalid input syntax for type bigint: "a"
- before:
- create_table_and_mv
sql: |
Expand Down Expand Up @@ -148,8 +152,9 @@
batch_error: |
Expr error
Caused by:
invalid input syntax for type bigint: "43.0"
Caused by these errors (recent errors listed first):
1: in function "cast"
2: invalid input syntax for type bigint: "43.0"
- before:
- create_table_and_mv
sql: |
Expand Down

0 comments on commit 582dde7

Please sign in to comment.