Skip to content

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

Closed
@Cythia828

Description

@Cythia828
Collaborator

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

Activity

JackWang032

JackWang032 commented on Mar 28, 2025

@JackWang032
Collaborator

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

Cythia828

Cythia828 commented on May 8, 2025

@Cythia828
CollaboratorAuthor

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

mumiao

mumiao commented on May 8, 2025

@mumiao
Collaborator

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

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

No one assigned

    Labels

    improvementImprove existing featurenew featuresNew feature or request

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

      Development

      No branches or pull requests

        Participants

        @Cythia828@mumiao@JackWang032

        Issue actions

          [Feature Request]: Alias作为实体收集[Collect aliases as independent entities] · Issue #408 · DTStack/dt-sql-parser