dt-sql-parser icon indicating copy to clipboard operation
dt-sql-parser copied to clipboard

feat: collect entity

Open HaydenOrz opened this issue 1 year ago • 0 comments

简介

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

主要变更

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

支持情况

  • [X] MySQL @HaydenOrz
  • [X] Spark @HaydenOrz
  • [X] Impala @LuckyFBB https://github.com/DTStack/dt-sql-parser/pull/256
  • [X] Trino @HaydenOrz
  • [x] Hive @LuckyFBB
  • [x] PostgreSQL @Cythia828
  • [ ] Flink
  • [ ] 不再从input 中截取文本,直接 token.text 获取

遗留问题

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

HaydenOrz avatar Feb 26 '24 09:02 HaydenOrz