Skip to content

Commit

Permalink
fix sql test
Browse files Browse the repository at this point in the history
Signed-off-by: Murphy <[email protected]>
  • Loading branch information
murphyatwork committed Sep 3, 2024
1 parent cd4ce12 commit 2f90375
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 3 deletions.
4 changes: 2 additions & 2 deletions test/sql/test_function/R/test_get_query_dump
Original file line number Diff line number Diff line change
Expand Up @@ -57,7 +57,7 @@ select get_query_dump('invalid-query');
-- result:
E: (6013, "SemanticException: Getting analyzing error. Detail message: Invalid parameter get_query_dump: execute query failed. Getting syntax error at line 1, column 0. Detail message: Unexpected input 'invalid', the most similar input is {'INSTALL', 'UNINSTALL', 'KILL', 'LOAD', 'ADMIN', '(', ';'}..")
-- !result
select get_query_dump(lower('select * from t1'));
select get_query_dump(rtrim('select * from t1'));
-- result:
E: (1064, 'Getting analyzing error. Detail message: Meta function get_query_dump does not support non-constant arguments.')
-- !result
Expand Down Expand Up @@ -103,4 +103,4 @@ select get_json_string(x, '$.statement') from query_dump;
-- result:
SELECT *
FROM db_mock_000.tbl_mock_001
-- !result
-- !result
2 changes: 1 addition & 1 deletion test/sql/test_function/T/test_get_query_dump
Original file line number Diff line number Diff line change
Expand Up @@ -45,7 +45,7 @@ from __row_util;
-- Invalid cases.
select get_query_dump('');
select get_query_dump('invalid-query');
select get_query_dump(lower('select * from t1'));
select get_query_dump(trim('select * from t1'));

-- Valid cases.
with
Expand Down

0 comments on commit 2f90375

Please sign in to comment.