Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

[8.0] SQL: Fix qualified attribute resolution with CCS (#81320) #81570

Merged
merged 1 commit into from
Dec 9, 2021

Conversation

bpintea
Copy link
Contributor

@bpintea bpintea commented Dec 9, 2021

Backports the following commits to 8.0:

In case the fields are qualified only by the index name in a
cross cluster search query, the field resolution was failing since an
attribute's qualification contains the cluster name, while a field's doesn't.

This changes the existing  `Attribute#qualifiedName()` to return a qualification
including the index name only and adds (for completion) a new method,
`fullyQualifiedName()`, which will return the 'cluster:index' qualification.

This will allow queries like this to work:
 `SELECT remote_index.field FROM remote_cluster:remote_index`
or
 `SELECT remote_index.field FROM remote_index` when the cluster is provided
through the xDBC "cluster" parameter.
@bpintea bpintea added the auto-merge Automatically merge pull request when CI checks pass (NB doesn't wait for reviews!) label Dec 9, 2021
@bpintea bpintea merged commit 9faee4b into elastic:8.0 Dec 9, 2021
@bpintea bpintea deleted the backport/8.0/pr-81320 branch December 9, 2021 08:21
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
auto-merge Automatically merge pull request when CI checks pass (NB doesn't wait for reviews!) backport v8.0.0-rc2
Projects
None yet
Development

Successfully merging this pull request may close these issues.

3 participants