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(all sql): add all sql expression column #358

Open
wants to merge 13 commits into
base: next
Choose a base branch
from

Conversation

LuckyFBB
Copy link
Collaborator

嵌套 columnName 在 expression 里面

但是有些地方使用了 expression 并不需要我们提示字段,因此我们需要判断当前 columnName 的路径是否在 groupBy 中

image

我们通过 core.collectCandidates 拿到的 candidates 就包含了当前的路径,在 ruleList 里面

  • Impala
    • select expression
    • group by expression
    • order by expression
    • partition by expression
    • having expression
    • join relation
    • case when
    • where expression
  • Trino
    • select expression
    • group by expression
    • order by expression
    • partition by expression
    • having expression
    • join relation
    • case when
    • where expression

LuckyFBB and others added 6 commits October 17, 2024 19:21
* feat: add mysql errorListener and commonErrorListener

* feat: improve other sql error msg

* feat: support i18n for error msg

* feat: add all sql errorMsg unit test

* feat: update locale file and change i18n funtion name

* test: upate error unit test
* feat(flinksql): collect comment, type attribute for entity

* feat(flinksql): delete console log

* fix(DTStack#305): delete function ctxToWord,using ctxToText instead of ctxToWord

* feat: update attribute's type

* feat(flinksql): update flinksql's entitycollect unit test

* feat: optimize interface and update unit test

* feat: update collect attr detail

* feat: optimize interface and some function's arguments

* feat: add comment and update params' name

* feat: collect alias in select statement

* feat: update collect attribute function and update unit test

---------

Co-authored-by: zhaoge <>
* feat(trinosql): collect trino sql's attribute(comment,alias,colType)

* feat(hivesql): collect hive sql's attribute(comment,alias,colType)

* feat(impalasql): collect attribute(comment, colType, alias)

* feat(sparksql): collect entity's attribute (comment,alias, colType)

* feat: update endContextList of collect attribute

* feat(postgresql): collect hive sql's attribute(alias,colType)

* feat: update interface of attrInfo and alter entitycollect ts file

* feat(mysql): collect entity's attribute(comment,colType,alias)

* ci: fix check-types problem

---------

Co-authored-by: zhaoge <>
@LuckyFBB LuckyFBB changed the title feat(impala): add impala expression column feat(all sql): add impala expression column Oct 18, 2024
@LuckyFBB LuckyFBB changed the title feat(all sql): add impala expression column feat(all sql): add all sql expression column Oct 22, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

4 participants