-
Notifications
You must be signed in to change notification settings - Fork 94
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 #253
Feat/collect entity #253
Conversation
} from '../common/entityCollector'; | ||
|
||
export default class MySqlEntityCollector extends EntityCollector implements MySqlParserListener { | ||
combineRootStmtEntities( |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
我理解当我们搜集的类型都是一样的时候,是不是所有 SQL 的 combineRootStmtEntities 都是一样的?
为什么需要每一种都SQL都实现一次 combineRootStmtEntities 讷?🤔
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
不同的 SQL 的实体聚合逻辑可能不一样,开放这个方法用于SQL 自定义聚合逻辑。只是目前支持的情况比较简单,所以看起来所有sql都一样
CREATE TABLE new_tb_from_old AS | ||
SELECT | ||
old_tb1.column1, | ||
old_tb2.column2 |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
对于 column1/column2 作为了 new_tb_from_old 的字段,需要被收集吗?
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
目前无法将查询的字段与查询条件中的字段区分开,所以暂时没做
support Hive @LuckyFBB |
support PostgreSQL @HaydenOrz |
PR 已经转移至 #265