Skip to content

[Bug]: sql "WITH qn AS (SELECT a FROM t1), qn as (select b from t1)" should be parsed error, but success  #3299

Closed

Description

@aressu1985

Is there an existing issue for the same bug?

  • I have checked the existing issues.

Environment

- Version or commit-id (e.g. v0.1.0 or 8b23a93):0.5.0
- Hardware parameters:
- OS type:
- Others:

Actual Behavior

[ERROR]
[SCRIPT FILE]: cases/expression/cte.sql
[ROW NUMBER]: 17
[SQL STATEMENT]: WITH qn AS (SELECT a FROM t1), qn as (select b from t1)
SELECT 1 FROM qn;
[EXPECT RESULT]:
Not unique table/alias: 'qn'
[ACTUAL RESULT]:
1

Expected Behavior

No response

Steps to Reproduce

No response

Additional information

No response

Activity

  1. added
    kind/bug
    bvt
    on Jun 23, 2022
  2. added this to the v0.5.0 milestone on Jun 23, 2022
  3. added a commit that references this issue on Jun 27, 2022
    c5dfe92
  4. aressu1985 commented on Jun 27, 2022

    @aressu1985
    ContributorAuthor

    fixed

  5. added a commit that references this issue on Jun 28, 2022
    32fd7f5
  6. added 2 commits that reference this issue on May 7, 2026
    097f939
    0bb60b0
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

Labels

bvtkind/bugtriage/accepted

Type

No type

Projects

No projects

    Milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions