Skip to content

Clickhouse tuples not supported #2338

Closed

Description

@alrevuelta

Clickhouse tuples are not supported. The following errors ParserError("Expected: end of statement, found: .1 at Line: 1, Column: 22").

SELECT t.1 FROM x

This is a valid Clickhouse way of accessing tuple elements. See https://clickhouse.com/docs/sql-reference/functions/tuple-functions#tupleelement. It is some syntactic sugar to tupleElement(t, 1) which does work.

Request: Make the above query work, and similar ones.

SELECT t.1 FROM x
SELECT (1, 2, 3).2
SELECT arr[1].1 FROM t
SELECT arr[1].1.2 FROM t

Activity

  1. LucaCappelletti94 commented on Sep 28, 2026

    @LucaCappelletti94
    Contributor

    Completed by #2574, SELECT t.1 FROM x, SELECT (1, 2, 3).2, SELECT arr[1].1 FROM t and SELECT arr[1].1.2 FROM t all parse in ClickHouseDialect and round-trip.

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

    No labels
    No labels

    Type

    No type

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions