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 #253

Closed
wants to merge 17 commits into from
Closed

Conversation

HaydenOrz
Copy link
Collaborator

@HaydenOrz HaydenOrz commented Jan 25, 2024

PR 已经转移至 #265

@HaydenOrz HaydenOrz added the new features New feature or request label Jan 25, 2024
@HaydenOrz HaydenOrz marked this pull request as draft January 25, 2024 07:31
@mumiao mumiao self-requested a review January 26, 2024 01:53
src/parser/mysql/mysqlEntityCollector.ts Outdated Show resolved Hide resolved
} from '../common/entityCollector';

export default class MySqlEntityCollector extends EntityCollector implements MySqlParserListener {
combineRootStmtEntities(
Copy link
Collaborator

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

我理解当我们搜集的类型都是一样的时候,是不是所有 SQL 的 combineRootStmtEntities 都是一样的?
为什么需要每一种都SQL都实现一次 combineRootStmtEntities 讷?🤔

Copy link
Collaborator Author

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
Copy link
Collaborator

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 的字段,需要被收集吗?

Copy link
Collaborator Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

目前无法将查询的字段与查询条件中的字段区分开,所以暂时没做

@LuckyFBB LuckyFBB mentioned this pull request Feb 4, 2024
@LuckyFBB
Copy link
Collaborator

LuckyFBB commented Feb 5, 2024

support Hive @LuckyFBB

@Cythia828 Cythia828 self-requested a review February 5, 2024 08:39
@Cythia828
Copy link
Collaborator

support PostgreSQL @HaydenOrz

@HaydenOrz HaydenOrz mentioned this pull request Feb 19, 2024
4 tasks
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