Skip to content

Commit fe51e38

Browse files
author
zhaoge
committed
ci: fix check-types problem
1 parent 58b7f14 commit fe51e38

File tree

1 file changed

+34
-20
lines changed

1 file changed

+34
-20
lines changed

src/parser/flink/flinkEntityCollector.ts

Lines changed: 34 additions & 20 deletions
Original file line numberDiff line numberDiff line change
@@ -35,10 +35,12 @@ export class FlinkEntityCollector extends EntityCollector implements FlinkSqlPar
3535
}
3636

3737
exitDatabasePathCreate(ctx: DatabasePathCreateContext) {
38-
this.pushEntity(ctx, EntityContextType.DATABASE_CREATE, {
39-
attrNameList: [AttrName.comment],
40-
endContextList: [CreateDatabaseContext.name],
41-
});
38+
this.pushEntity(ctx, EntityContextType.DATABASE_CREATE, [
39+
{
40+
attrName: AttrName.comment,
41+
endContextList: [CreateDatabaseContext.name],
42+
},
43+
]);
4244
}
4345

4446
exitDatabasePath(ctx: DatabasePathContext) {
@@ -51,37 +53,49 @@ export class FlinkEntityCollector extends EntityCollector implements FlinkSqlPar
5153
ctx,
5254
EntityContextType.TABLE,
5355
needCollectAttr
54-
? {
55-
attrNameList: [AttrName.alias],
56-
endContextList: [TableReferenceContext.name],
57-
}
56+
? [
57+
{
58+
attrName: AttrName.alias,
59+
endContextList: [TableReferenceContext.name],
60+
},
61+
]
5862
: undefined
5963
);
6064
}
6165

6266
exitTablePathCreate(ctx: TablePathCreateContext) {
63-
this.pushEntity(ctx, EntityContextType.TABLE_CREATE, {
64-
attrNameList: [AttrName.comment],
65-
endContextList: [CreateTableContext.name],
66-
});
67+
this.pushEntity(ctx, EntityContextType.TABLE_CREATE, [
68+
{
69+
attrName: AttrName.comment,
70+
endContextList: [CreateTableContext.name],
71+
},
72+
]);
6773
}
6874

6975
exitViewPath(ctx: ViewPathContext) {
7076
this.pushEntity(ctx, EntityContextType.VIEW);
7177
}
7278

7379
exitViewPathCreate(ctx: ViewPathCreateContext) {
74-
this.pushEntity(ctx, EntityContextType.VIEW_CREATE, {
75-
attrNameList: [AttrName.comment],
76-
endContextList: [CreateViewContext.name],
77-
});
80+
this.pushEntity(ctx, EntityContextType.VIEW_CREATE, [
81+
{
82+
attrName: AttrName.comment,
83+
endContextList: [CreateViewContext.name],
84+
},
85+
]);
7886
}
7987

8088
exitColumnNameCreate(ctx: ColumnNameCreateContext) {
81-
this.pushEntity(ctx, EntityContextType.COLUMN_CREATE, {
82-
attrNameList: [AttrName.comment, AttrName.colType],
83-
endContextList: [PhysicalColumnDefinitionContext.name],
84-
});
89+
this.pushEntity(ctx, EntityContextType.COLUMN_CREATE, [
90+
{
91+
attrName: AttrName.comment,
92+
endContextList: [PhysicalColumnDefinitionContext.name],
93+
},
94+
{
95+
attrName: AttrName.colType,
96+
endContextList: [PhysicalColumnDefinitionContext.name],
97+
},
98+
]);
8599
}
86100

87101
exitFunctionNameCreate(ctx: FunctionNameCreateContext) {

0 commit comments

Comments
 (0)