Skip to content

Commit 36faf19

Browse files
committed
test: fix create view test case
1 parent 592f164 commit 36faf19

File tree

1 file changed

+2
-0
lines changed

1 file changed

+2
-0
lines changed

test/parser/spark/contextCollect/entityCollector.test.ts

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -239,6 +239,8 @@ describe('SparkSQL entity collector tests', () => {
239239
startColumn: 35,
240240
endColumn: 65,
241241
});
242+
expect(viewEntity.relatedEntities).not.toBeNull();
243+
expect(viewEntity.relatedEntities[0]).toBe(queryResultEntity);
242244
}
243245
expect(tableEntity.entityContextType).toBe(EntityContextType.TABLE);
244246
expect(tableEntity.belongStmt.stmtContextType).toBe(StmtContextType.SELECT_STMT);

0 commit comments

Comments
 (0)