From 4db3ee2edd7043b35797797a891acbbdeab3041c Mon Sep 17 00:00:00 2001 From: taiyang-li <654010905@qq.com> Date: Thu, 20 Jan 2022 19:41:35 +0800 Subject: [PATCH] add stateless tests --- .../01604_explain_ast_of_nonselect_query.reference | 11 +++++++++++ .../01604_explain_ast_of_nonselect_query.sql | 3 ++- 2 files changed, 13 insertions(+), 1 deletion(-) diff --git a/tests/queries/0_stateless/01604_explain_ast_of_nonselect_query.reference b/tests/queries/0_stateless/01604_explain_ast_of_nonselect_query.reference index 4cc67aa517c..0bec8aabdb1 100644 --- a/tests/queries/0_stateless/01604_explain_ast_of_nonselect_query.reference +++ b/tests/queries/0_stateless/01604_explain_ast_of_nonselect_query.reference @@ -7,3 +7,14 @@ AlterQuery t1 (children 2) Function today (children 1) ExpressionList Identifier t1 +CreateFunctionQuery double (children 2) + Identifier double + Function lambda (children 1) + ExpressionList (children 2) + Function tuple (children 1) + ExpressionList (children 1) + Identifier n + Function multiply (children 1) + ExpressionList (children 2) + Literal UInt64_2 + Identifier n diff --git a/tests/queries/0_stateless/01604_explain_ast_of_nonselect_query.sql b/tests/queries/0_stateless/01604_explain_ast_of_nonselect_query.sql index 41939123c92..6a4c065fd2c 100644 --- a/tests/queries/0_stateless/01604_explain_ast_of_nonselect_query.sql +++ b/tests/queries/0_stateless/01604_explain_ast_of_nonselect_query.sql @@ -1,2 +1,3 @@ explain ast; -- { clientError 62 } -explain ast alter table t1 delete where date = today() +explain ast alter table t1 delete where date = today(); +explain ast create function double AS (n) -> 2*n;