Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

feat: collect entity #265

Merged
merged 30 commits into from
Mar 26, 2024
Merged

feat: collect entity #265

merged 30 commits into from
Mar 26, 2024

Conversation

HaydenOrz
Copy link
Collaborator

@HaydenOrz HaydenOrz commented Feb 26, 2024

简介

支持上下文中的实体收集 #250

主要变更

  1. 新增entityCollector 抽象类
  2. 重命名 SyntaxContextType 为 EntitContextType
  3. 添加单元测试

支持情况

遗留问题

  1. 支持表/视图/字段别名的解析(alias)
  2. 支持 Alter Table 等上下文联系

@HaydenOrz HaydenOrz added the new features New feature or request label Feb 26, 2024
@HaydenOrz HaydenOrz mentioned this pull request Feb 26, 2024
@HaydenOrz HaydenOrz marked this pull request as draft February 26, 2024 09:51
Cythia828 and others added 4 commits February 29, 2024 14:37
* feat(pgsql): pgsql collect entity

* feat(pgsql): optimize some name

---------

Co-authored-by: zhaoge <>
* feat: supprt collect db/function and add splitListner

* feat: remove SplitListener interface in baseParser to use SplitListener in root

* fix(mysql): fix show create xxx not celloct as createXXXEntity type
* feat: optimize pgsql grammar

* feat: add sql parser base

* feat: apply SQLParserBase

* feat: add geAllEntities method

* test: test collect table when missing column
* feat: mark stmt which contain caret

* test: correct name of getAllEntities

* test: remove misscolumn unit tests

* test: add suggestionWithEntity tests
* feat: improve flink sql parser

* feat: support flink entity collector

* test: flink entity collect unit test
@HaydenOrz HaydenOrz marked this pull request as ready for review March 26, 2024 03:20
@HaydenOrz HaydenOrz merged commit a997211 into main Mar 26, 2024
5 checks passed
@HaydenOrz HaydenOrz deleted the feat/collect_entity branch April 19, 2024 02:09
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
new features New feature or request
Projects
None yet
Development

Successfully merging this pull request may close these issues.

3 participants