Skip to content

Commit

Permalink
ci: fix check-types problem
Browse files Browse the repository at this point in the history
  • Loading branch information
zhaoge committed Aug 2, 2024
1 parent 58b7f14 commit fe51e38
Showing 1 changed file with 34 additions and 20 deletions.
54 changes: 34 additions & 20 deletions src/parser/flink/flinkEntityCollector.ts
Original file line number Diff line number Diff line change
Expand Up @@ -35,10 +35,12 @@ export class FlinkEntityCollector extends EntityCollector implements FlinkSqlPar
}

exitDatabasePathCreate(ctx: DatabasePathCreateContext) {
this.pushEntity(ctx, EntityContextType.DATABASE_CREATE, {
attrNameList: [AttrName.comment],
endContextList: [CreateDatabaseContext.name],
});
this.pushEntity(ctx, EntityContextType.DATABASE_CREATE, [
{
attrName: AttrName.comment,
endContextList: [CreateDatabaseContext.name],
},
]);
}

exitDatabasePath(ctx: DatabasePathContext) {
Expand All @@ -51,37 +53,49 @@ export class FlinkEntityCollector extends EntityCollector implements FlinkSqlPar
ctx,
EntityContextType.TABLE,
needCollectAttr
? {
attrNameList: [AttrName.alias],
endContextList: [TableReferenceContext.name],
}
? [
{
attrName: AttrName.alias,
endContextList: [TableReferenceContext.name],
},
]
: undefined
);
}

exitTablePathCreate(ctx: TablePathCreateContext) {
this.pushEntity(ctx, EntityContextType.TABLE_CREATE, {
attrNameList: [AttrName.comment],
endContextList: [CreateTableContext.name],
});
this.pushEntity(ctx, EntityContextType.TABLE_CREATE, [
{
attrName: AttrName.comment,
endContextList: [CreateTableContext.name],
},
]);
}

exitViewPath(ctx: ViewPathContext) {
this.pushEntity(ctx, EntityContextType.VIEW);
}

exitViewPathCreate(ctx: ViewPathCreateContext) {
this.pushEntity(ctx, EntityContextType.VIEW_CREATE, {
attrNameList: [AttrName.comment],
endContextList: [CreateViewContext.name],
});
this.pushEntity(ctx, EntityContextType.VIEW_CREATE, [
{
attrName: AttrName.comment,
endContextList: [CreateViewContext.name],
},
]);
}

exitColumnNameCreate(ctx: ColumnNameCreateContext) {
this.pushEntity(ctx, EntityContextType.COLUMN_CREATE, {
attrNameList: [AttrName.comment, AttrName.colType],
endContextList: [PhysicalColumnDefinitionContext.name],
});
this.pushEntity(ctx, EntityContextType.COLUMN_CREATE, [
{
attrName: AttrName.comment,
endContextList: [PhysicalColumnDefinitionContext.name],
},
{
attrName: AttrName.colType,
endContextList: [PhysicalColumnDefinitionContext.name],
},
]);
}

exitFunctionNameCreate(ctx: FunctionNameCreateContext) {
Expand Down

0 comments on commit fe51e38

Please sign in to comment.