Skip to content

ClusterApi & SHOW CLUSTER NAME #60

@fupelaqu

Description

@fupelaqu

ClusterApi & SHOW CLUSTER NAME

Epic: Federation Server Setup & Transparent Proxy
Repository: elasticsql (core project)

As a REPL user or Flight SQL client,
I want to run SHOW CLUSTER NAME and get the ES cluster name,
So that the cluster identity is programmatically accessible and can be used for schema resolution by the federation server.

Acceptance Criteria

Given a user in the REPL or a Flight SQL client
When SHOW CLUSTER NAME is executed
Then the SQL parser produces a ShowClusterName query
And GatewayApi.run() delegates to ClusterApi.getClusterName()
And a single-row, single-column result is returned with the ES cluster name

Given a ClusterApi trait is defined in core/
When it is mixed into GatewayApi
Then GatewayApi exposes cluster name retrieval through the standard run() execution path

Given the bridge template includes ClusterApi implementation
When the project is compiled for ES 6, 7, 8, and 9
Then all versions compile and return the correct cluster name from their respective ES client APIs

Given an ES cluster is unreachable
When SHOW CLUSTER NAME is executed
Then an ElasticFailure is returned with a clear error message

Requirements

  • FRs: FR17 (partial)

Metadata

Metadata

Assignees

No one assigned

    Labels

    enhancementNew feature or request

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions