Skip to content

Commit

Permalink
update test
Browse files Browse the repository at this point in the history
Signed-off-by: Runji Wang <[email protected]>
  • Loading branch information
wangrunji0408 committed Feb 18, 2024
1 parent eed7060 commit adea7af
Show file tree
Hide file tree
Showing 2 changed files with 18 additions and 190 deletions.
30 changes: 15 additions & 15 deletions e2e_test/batch/catalog/pg_class.slt.part
Original file line number Diff line number Diff line change
@@ -1,23 +1,23 @@
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
SELECT oid,relname,relowner,relkind FROM pg_catalog.pg_class WHERE oid = 'pg_namespace'::regclass;
----
2 pg_namespace 1 v
24 pg_namespace 1 v
178 changes: 3 additions & 175 deletions src/frontend/planner_test/tests/testdata/output/pg_catalog.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -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: |-
Expand Down

0 comments on commit adea7af

Please sign in to comment.