Skip to content

Alias does not work on exists column #44412

Closed

Description

@Fanvadar

Describe the unexpected behaviour
When using AS on a column created using the EXISTS keyword, the alias is not respected.

How to reproduce

SELECT EXISTS(SELECT 1) AS mycheck

Returns:

in(1, _subquery5779)
1

Expected behavior
As in MySQL, I expect:

mycheck
1

Activity

  1. added
    unexpected behaviour
    on Dec 20, 2022
  2. added and removed
    unexpected behaviour
    on Dec 20, 2022
  3. added a commit that references this issue on Apr 10, 2024
  4. thatc0py commented on Dec 20, 2024

    @thatc0py

    Hi! That's the solution for this behavior? Is it fixed in latest CH versions?

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

Metadata

Metadata

Assignees

No one assigned

    Type

    No type

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions