-
Notifications
You must be signed in to change notification settings - Fork 0
ClusterApi & SHOW CLUSTER NAME #60
Description
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)