Skip to content

[Feature Request]: Alias作为实体收集[Collect aliases as independent entities] #408

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

Closed
Cythia828 opened this issue Mar 28, 2025 · 3 comments
Labels
improvement Improve existing feature new features New feature or request

Comments

@Cythia828
Copy link
Collaborator

Cythia828 commented Mar 28, 2025

Topic

Support new features on parser

Description

目前关于表别名、catalog别名等已经作为其实体相关属性收集,但其别名作为实体去收集也迫在眉睫,在实际使用场景中,我们也希望别名在使用处能够拿到其原实体的字段等其他属性。

Currently, aliases of tables, catalogs, etc., are collected as related attributes of their corresponding entities. However, treating aliases themselves as independent entities for collection has become an urgent need.

In practical usage scenarios, we also expect aliases to retain access to all original entity attributes (such as fields) at their point of use.

Related

DTStack/monaco-sql-languages#150

@Cythia828 Cythia828 added improvement Improve existing feature new features New feature or request labels Mar 28, 2025
@JackWang032
Copy link
Collaborator

I think merging aliases into entities can already meet most practical needs.

@Cythia828
Copy link
Collaborator Author

Cythia828 commented May 8, 2025

done.
参考issue #150评论区,可以看见目前已有能力已经可以支撑用户通过上下文拿到别名与实体的关系(参考issue #151),而我们当初想要将Alias作为实体去收集也是基于想要知道别名与实体之间的双向关系,如今已经可以拿到,所以不单独将Alias作为实体去收集。

@mumiao
Copy link
Collaborator

mumiao commented May 8, 2025

@Cythia828 这里给他描述下我们要close的解决方案,有些issue链接过来

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
improvement Improve existing feature new features New feature or request
Projects
None yet
Development

No branches or pull requests

3 participants