From 60547c8ce79c9341ec6ba9d2ce4b7b7fa4dded31 Mon Sep 17 00:00:00 2001 From: Runji Wang Date: Sun, 18 Feb 2024 14:02:45 +0800 Subject: [PATCH] update test Signed-off-by: Runji Wang --- e2e_test/batch/catalog/pg_class.slt.part | 28 +-- .../tests/testdata/output/pg_catalog.yaml | 178 +----------------- 2 files changed, 17 insertions(+), 189 deletions(-) diff --git a/e2e_test/batch/catalog/pg_class.slt.part b/e2e_test/batch/catalog/pg_class.slt.part index 3b8a5162536e6..3b6d27622aaf6 100644 --- a/e2e_test/batch/catalog/pg_class.slt.part +++ b/e2e_test/batch/catalog/pg_class.slt.part @@ -1,20 +1,20 @@ query ITIT SELECT oid,relname,relowner,relkind FROM pg_catalog.pg_class ORDER BY oid limit 15; ---- -1 pg_type 1 v -2 pg_namespace 1 v -3 pg_cast 1 v -4 pg_matviews 1 v -5 pg_user 1 v -6 pg_class 1 v -7 pg_index 1 v -8 pg_opclass 1 v -9 pg_collation 1 v -10 pg_am 1 v -11 pg_operator 1 v -12 pg_views 1 v -13 pg_attribute 1 v -14 pg_database 1 v +1 columns 1 v +2 tables 1 v +3 views 1 v +4 pg_am 1 v +5 pg_attrdef 1 v +6 pg_attribute 1 v +7 pg_auth_members 1 v +8 pg_cast 1 r +9 pg_class 1 v +10 pg_collation 1 v +11 pg_constraint 1 v +12 pg_conversion 1 v +13 pg_database 1 v +14 pg_depend 1 v 15 pg_description 1 v query ITIT diff --git a/src/frontend/planner_test/tests/testdata/output/pg_catalog.yaml b/src/frontend/planner_test/tests/testdata/output/pg_catalog.yaml index b369b85de69f5..cca1da2ee47ee 100644 --- a/src/frontend/planner_test/tests/testdata/output/pg_catalog.yaml +++ b/src/frontend/planner_test/tests/testdata/output/pg_catalog.yaml @@ -26,181 +26,9 @@ - sql: | select * from pg_catalog.pg_cast logical_plan: |- - LogicalProject { exprs: [*VALUES*_0.column_0, *VALUES*_0.column_1, *VALUES*_0.column_2, *VALUES*_0.column_3] } - └─LogicalShare { id: 2 } - └─LogicalProject { exprs: [*VALUES*_0.column_0, *VALUES*_0.column_1, *VALUES*_0.column_2, *VALUES*_0.column_3] } - └─LogicalValues - ├─rows: - │ ┌─[0:Int32, 16:Int32, 23:Int32, 'e':Varchar] - │ ├─[1:Int32, 16:Int32, 1043:Int32, 'a':Varchar] - │ ├─[2:Int32, 21:Int32, 23:Int32, 'i':Varchar] - │ ├─[3:Int32, 21:Int32, 20:Int32, 'i':Varchar] - │ ├─[4:Int32, 21:Int32, 700:Int32, 'i':Varchar] - │ ├─[5:Int32, 21:Int32, 701:Int32, 'i':Varchar] - │ ├─[6:Int32, 21:Int32, 1700:Int32, 'i':Varchar] - │ ├─[7:Int32, 21:Int32, 1043:Int32, 'a':Varchar] - │ ├─[8:Int32, 21:Int32, 1301:Int32, 'i':Varchar] - │ ├─[9:Int32, 23:Int32, 16:Int32, 'e':Varchar] - │ ├─[10:Int32, 23:Int32, 21:Int32, 'a':Varchar] - │ ├─[11:Int32, 23:Int32, 20:Int32, 'i':Varchar] - │ ├─[12:Int32, 23:Int32, 700:Int32, 'i':Varchar] - │ ├─[13:Int32, 23:Int32, 701:Int32, 'i':Varchar] - │ ├─[14:Int32, 23:Int32, 1700:Int32, 'i':Varchar] - │ ├─[15:Int32, 23:Int32, 1043:Int32, 'a':Varchar] - │ ├─[16:Int32, 23:Int32, 1301:Int32, 'i':Varchar] - │ ├─[17:Int32, 20:Int32, 21:Int32, 'a':Varchar] - │ ├─[18:Int32, 20:Int32, 23:Int32, 'a':Varchar] - │ ├─[19:Int32, 20:Int32, 700:Int32, 'i':Varchar] - │ ├─[20:Int32, 20:Int32, 701:Int32, 'i':Varchar] - │ ├─[21:Int32, 20:Int32, 1700:Int32, 'i':Varchar] - │ ├─[22:Int32, 20:Int32, 1043:Int32, 'a':Varchar] - │ ├─[23:Int32, 20:Int32, 1301:Int32, 'i':Varchar] - │ ├─[24:Int32, 700:Int32, 21:Int32, 'a':Varchar] - │ ├─[25:Int32, 700:Int32, 23:Int32, 'a':Varchar] - │ ├─[26:Int32, 700:Int32, 20:Int32, 'a':Varchar] - │ ├─[27:Int32, 700:Int32, 701:Int32, 'i':Varchar] - │ ├─[28:Int32, 700:Int32, 1700:Int32, 'a':Varchar] - │ ├─[29:Int32, 700:Int32, 1043:Int32, 'a':Varchar] - │ ├─[30:Int32, 701:Int32, 21:Int32, 'a':Varchar] - │ ├─[31:Int32, 701:Int32, 23:Int32, 'a':Varchar] - │ ├─[32:Int32, 701:Int32, 20:Int32, 'a':Varchar] - │ ├─[33:Int32, 701:Int32, 700:Int32, 'a':Varchar] - │ ├─[34:Int32, 701:Int32, 1700:Int32, 'a':Varchar] - │ ├─[35:Int32, 701:Int32, 1043:Int32, 'a':Varchar] - │ ├─[36:Int32, 1700:Int32, 21:Int32, 'a':Varchar] - │ ├─[37:Int32, 1700:Int32, 23:Int32, 'a':Varchar] - │ ├─[38:Int32, 1700:Int32, 20:Int32, 'a':Varchar] - │ ├─[39:Int32, 1700:Int32, 700:Int32, 'i':Varchar] - │ ├─[40:Int32, 1700:Int32, 701:Int32, 'i':Varchar] - │ ├─[41:Int32, 1700:Int32, 1043:Int32, 'a':Varchar] - │ ├─[42:Int32, 1082:Int32, 1043:Int32, 'a':Varchar] - │ ├─[43:Int32, 1082:Int32, 1114:Int32, 'i':Varchar] - │ ├─[44:Int32, 1082:Int32, 1184:Int32, 'i':Varchar] - │ ├─[45:Int32, 1043:Int32, 16:Int32, 'e':Varchar] - │ ├─[46:Int32, 1043:Int32, 21:Int32, 'e':Varchar] - │ ├─[47:Int32, 1043:Int32, 23:Int32, 'e':Varchar] - │ ├─[48:Int32, 1043:Int32, 20:Int32, 'e':Varchar] - │ ├─[49:Int32, 1043:Int32, 700:Int32, 'e':Varchar] - │ ├─[50:Int32, 1043:Int32, 701:Int32, 'e':Varchar] - │ ├─[51:Int32, 1043:Int32, 1700:Int32, 'e':Varchar] - │ ├─[52:Int32, 1043:Int32, 1082:Int32, 'e':Varchar] - │ ├─[53:Int32, 1043:Int32, 1083:Int32, 'e':Varchar] - │ ├─[54:Int32, 1043:Int32, 1114:Int32, 'e':Varchar] - │ ├─[55:Int32, 1043:Int32, 1184:Int32, 'e':Varchar] - │ ├─[56:Int32, 1043:Int32, 1186:Int32, 'e':Varchar] - │ ├─[57:Int32, 1043:Int32, 17:Int32, 'e':Varchar] - │ ├─[58:Int32, 1043:Int32, 3802:Int32, 'e':Varchar] - │ ├─[59:Int32, 1043:Int32, 1301:Int32, 'e':Varchar] - │ ├─[60:Int32, 1083:Int32, 1043:Int32, 'a':Varchar] - │ ├─[61:Int32, 1083:Int32, 1186:Int32, 'i':Varchar] - │ ├─[62:Int32, 1114:Int32, 1082:Int32, 'a':Varchar] - │ ├─[63:Int32, 1114:Int32, 1043:Int32, 'a':Varchar] - │ ├─[64:Int32, 1114:Int32, 1083:Int32, 'a':Varchar] - │ ├─[65:Int32, 1114:Int32, 1184:Int32, 'i':Varchar] - │ ├─[66:Int32, 1184:Int32, 1082:Int32, 'a':Varchar] - │ ├─[67:Int32, 1184:Int32, 1043:Int32, 'a':Varchar] - │ ├─[68:Int32, 1184:Int32, 1083:Int32, 'a':Varchar] - │ ├─[69:Int32, 1184:Int32, 1114:Int32, 'a':Varchar] - │ ├─[70:Int32, 1186:Int32, 1043:Int32, 'a':Varchar] - │ ├─[71:Int32, 1186:Int32, 1083:Int32, 'a':Varchar] - │ ├─[72:Int32, 17:Int32, 1043:Int32, 'a':Varchar] - │ ├─[73:Int32, 3802:Int32, 16:Int32, 'e':Varchar] - │ ├─[74:Int32, 3802:Int32, 21:Int32, 'e':Varchar] - │ ├─[75:Int32, 3802:Int32, 23:Int32, 'e':Varchar] - │ ├─[76:Int32, 3802:Int32, 20:Int32, 'e':Varchar] - │ ├─[77:Int32, 3802:Int32, 700:Int32, 'e':Varchar] - │ ├─[78:Int32, 3802:Int32, 701:Int32, 'e':Varchar] - │ ├─[79:Int32, 3802:Int32, 1700:Int32, 'e':Varchar] - │ ├─[80:Int32, 3802:Int32, 1043:Int32, 'a':Varchar] - │ ├─[81:Int32, 1301:Int32, 701:Int32, 'e':Varchar] - │ └─[82:Int32, 1301:Int32, 1043:Int32, 'a':Varchar] - └─schema: Schema { fields: [*VALUES*_0.column_0:Int32, *VALUES*_0.column_1:Int32, *VALUES*_0.column_2:Int32, *VALUES*_0.column_3:Varchar] } - batch_plan: |- - BatchValues - └─rows: - ┌─[0:Int32, 16:Int32, 23:Int32, 'e':Varchar] - ├─[1:Int32, 16:Int32, 1043:Int32, 'a':Varchar] - ├─[2:Int32, 21:Int32, 23:Int32, 'i':Varchar] - ├─[3:Int32, 21:Int32, 20:Int32, 'i':Varchar] - ├─[4:Int32, 21:Int32, 700:Int32, 'i':Varchar] - ├─[5:Int32, 21:Int32, 701:Int32, 'i':Varchar] - ├─[6:Int32, 21:Int32, 1700:Int32, 'i':Varchar] - ├─[7:Int32, 21:Int32, 1043:Int32, 'a':Varchar] - ├─[8:Int32, 21:Int32, 1301:Int32, 'i':Varchar] - ├─[9:Int32, 23:Int32, 16:Int32, 'e':Varchar] - ├─[10:Int32, 23:Int32, 21:Int32, 'a':Varchar] - ├─[11:Int32, 23:Int32, 20:Int32, 'i':Varchar] - ├─[12:Int32, 23:Int32, 700:Int32, 'i':Varchar] - ├─[13:Int32, 23:Int32, 701:Int32, 'i':Varchar] - ├─[14:Int32, 23:Int32, 1700:Int32, 'i':Varchar] - ├─[15:Int32, 23:Int32, 1043:Int32, 'a':Varchar] - ├─[16:Int32, 23:Int32, 1301:Int32, 'i':Varchar] - ├─[17:Int32, 20:Int32, 21:Int32, 'a':Varchar] - ├─[18:Int32, 20:Int32, 23:Int32, 'a':Varchar] - ├─[19:Int32, 20:Int32, 700:Int32, 'i':Varchar] - ├─[20:Int32, 20:Int32, 701:Int32, 'i':Varchar] - ├─[21:Int32, 20:Int32, 1700:Int32, 'i':Varchar] - ├─[22:Int32, 20:Int32, 1043:Int32, 'a':Varchar] - ├─[23:Int32, 20:Int32, 1301:Int32, 'i':Varchar] - ├─[24:Int32, 700:Int32, 21:Int32, 'a':Varchar] - ├─[25:Int32, 700:Int32, 23:Int32, 'a':Varchar] - ├─[26:Int32, 700:Int32, 20:Int32, 'a':Varchar] - ├─[27:Int32, 700:Int32, 701:Int32, 'i':Varchar] - ├─[28:Int32, 700:Int32, 1700:Int32, 'a':Varchar] - ├─[29:Int32, 700:Int32, 1043:Int32, 'a':Varchar] - ├─[30:Int32, 701:Int32, 21:Int32, 'a':Varchar] - ├─[31:Int32, 701:Int32, 23:Int32, 'a':Varchar] - ├─[32:Int32, 701:Int32, 20:Int32, 'a':Varchar] - ├─[33:Int32, 701:Int32, 700:Int32, 'a':Varchar] - ├─[34:Int32, 701:Int32, 1700:Int32, 'a':Varchar] - ├─[35:Int32, 701:Int32, 1043:Int32, 'a':Varchar] - ├─[36:Int32, 1700:Int32, 21:Int32, 'a':Varchar] - ├─[37:Int32, 1700:Int32, 23:Int32, 'a':Varchar] - ├─[38:Int32, 1700:Int32, 20:Int32, 'a':Varchar] - ├─[39:Int32, 1700:Int32, 700:Int32, 'i':Varchar] - ├─[40:Int32, 1700:Int32, 701:Int32, 'i':Varchar] - ├─[41:Int32, 1700:Int32, 1043:Int32, 'a':Varchar] - ├─[42:Int32, 1082:Int32, 1043:Int32, 'a':Varchar] - ├─[43:Int32, 1082:Int32, 1114:Int32, 'i':Varchar] - ├─[44:Int32, 1082:Int32, 1184:Int32, 'i':Varchar] - ├─[45:Int32, 1043:Int32, 16:Int32, 'e':Varchar] - ├─[46:Int32, 1043:Int32, 21:Int32, 'e':Varchar] - ├─[47:Int32, 1043:Int32, 23:Int32, 'e':Varchar] - ├─[48:Int32, 1043:Int32, 20:Int32, 'e':Varchar] - ├─[49:Int32, 1043:Int32, 700:Int32, 'e':Varchar] - ├─[50:Int32, 1043:Int32, 701:Int32, 'e':Varchar] - ├─[51:Int32, 1043:Int32, 1700:Int32, 'e':Varchar] - ├─[52:Int32, 1043:Int32, 1082:Int32, 'e':Varchar] - ├─[53:Int32, 1043:Int32, 1083:Int32, 'e':Varchar] - ├─[54:Int32, 1043:Int32, 1114:Int32, 'e':Varchar] - ├─[55:Int32, 1043:Int32, 1184:Int32, 'e':Varchar] - ├─[56:Int32, 1043:Int32, 1186:Int32, 'e':Varchar] - ├─[57:Int32, 1043:Int32, 17:Int32, 'e':Varchar] - ├─[58:Int32, 1043:Int32, 3802:Int32, 'e':Varchar] - ├─[59:Int32, 1043:Int32, 1301:Int32, 'e':Varchar] - ├─[60:Int32, 1083:Int32, 1043:Int32, 'a':Varchar] - ├─[61:Int32, 1083:Int32, 1186:Int32, 'i':Varchar] - ├─[62:Int32, 1114:Int32, 1082:Int32, 'a':Varchar] - ├─[63:Int32, 1114:Int32, 1043:Int32, 'a':Varchar] - ├─[64:Int32, 1114:Int32, 1083:Int32, 'a':Varchar] - ├─[65:Int32, 1114:Int32, 1184:Int32, 'i':Varchar] - ├─[66:Int32, 1184:Int32, 1082:Int32, 'a':Varchar] - ├─[67:Int32, 1184:Int32, 1043:Int32, 'a':Varchar] - ├─[68:Int32, 1184:Int32, 1083:Int32, 'a':Varchar] - ├─[69:Int32, 1184:Int32, 1114:Int32, 'a':Varchar] - ├─[70:Int32, 1186:Int32, 1043:Int32, 'a':Varchar] - ├─[71:Int32, 1186:Int32, 1083:Int32, 'a':Varchar] - ├─[72:Int32, 17:Int32, 1043:Int32, 'a':Varchar] - ├─[73:Int32, 3802:Int32, 16:Int32, 'e':Varchar] - ├─[74:Int32, 3802:Int32, 21:Int32, 'e':Varchar] - ├─[75:Int32, 3802:Int32, 23:Int32, 'e':Varchar] - ├─[76:Int32, 3802:Int32, 20:Int32, 'e':Varchar] - ├─[77:Int32, 3802:Int32, 700:Int32, 'e':Varchar] - ├─[78:Int32, 3802:Int32, 701:Int32, 'e':Varchar] - ├─[79:Int32, 3802:Int32, 1700:Int32, 'e':Varchar] - ├─[80:Int32, 3802:Int32, 1043:Int32, 'a':Varchar] - ├─[81:Int32, 1301:Int32, 701:Int32, 'e':Varchar] - └─[82:Int32, 1301:Int32, 1043:Int32, 'a':Varchar] + LogicalProject { exprs: [pg_cast.oid, pg_cast.castsource, pg_cast.casttarget, pg_cast.castcontext] } + └─LogicalSysScan { table: pg_cast, columns: [pg_cast.oid, pg_cast.castsource, pg_cast.casttarget, pg_cast.castcontext] } + batch_plan: 'BatchScan { table: pg_cast, columns: [pg_cast.oid, pg_cast.castsource, pg_cast.casttarget, pg_cast.castcontext], distribution: Single }' - sql: | select pg_catalog.pg_get_userbyid(1) logical_plan: |-