Skip to content

DB::Exception: Missing columns #47288

Closed

Description

@heyboV

I have a SQL such like
select 1 as c0 from ( select C.字段AS字段from ( select 2 as bb) A LEFT JOIN ( select '1' as字段) C ON 1 = 1 LEFT JOIN ( select 1 as a) D ON 1 = 1) asT0whereT0.字段 = '1'
I got a Missing columns Error.
image
When I replace all Chinese characters with English characters, the SQL works。
image
In addition, When I change the alias with some other Chinese characters that different to column name, the SQL also works.
image
Clickhouse Server version is ClickHouse 23.2.3.17.
Is it a bug?
Thanks!

Activity

  1. Alex-Cheng commented on Mar 7, 2023

    @Alex-Cheng
    Contributor

    It should be a bug, I can produce it too and I cannot find a workaround yet.

  2. den-crane commented on Mar 7, 2023

    @den-crane
    Contributor

    @Alex-Cheng provide a repro

  3. Alex-Cheng commented on Mar 8, 2023

    @Alex-Cheng
    Contributor
  4. added
    unexpected behaviour
    and removed
    question
    on Mar 8, 2023
  5. added a commit that references this issue on Apr 10, 2024
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

    unexpected behaviourusability

    Type

    No type

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions