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

[ES|QL] CCS index with quotes fails #114201

Closed
stratoula opened this issue Oct 7, 2024 · 6 comments · Fixed by #114271
Closed

[ES|QL] CCS index with quotes fails #114201

stratoula opened this issue Oct 7, 2024 · 6 comments · Fixed by #114271
Assignees
Labels
:Analytics/ES|QL AKA ESQL >bug ES|QL-ui Impacts ES|QL UI Team:Analytics Meta label for analytical engine team (ESQL/Aggs/Geo)

Comments

@stratoula
Copy link

Elasticsearch Version

8.16

Installed Plugins

No response

Java Version

bundled

OS Version

Darwin Kernel Version 22.6.0

Problem Description

When we are wrapping a CCS index with quotes it fails with "Invalid index name: must not contain :"

Image

Wrapping a normal index with quotes works fine so this is a weird behavior. Also the error is confusing. CCS indexes are described with :

Steps to Reproduce

  1. Ensure that you have a CCS index
  2. Use the esql api to query this index with quotes : from "remote_cluster:index"

Logs (if relevant)

No response

@stratoula stratoula added >bug needs:triage Requires assignment of a team area label :Analytics/ES|QL AKA ESQL ES|QL-ui Impacts ES|QL UI labels Oct 7, 2024
@elasticsearchmachine elasticsearchmachine added Team:Analytics Meta label for analytical engine team (ESQL/Aggs/Geo) and removed needs:triage Requires assignment of a team area label labels Oct 7, 2024
@elasticsearchmachine
Copy link
Collaborator

Pinging @elastic/es-analytical-engine (Team:Analytics)

@elasticsearchmachine
Copy link
Collaborator

Pinging @elastic/kibana-esql (ES|QL-ui)

@alex-spies
Copy link
Contributor

@fang-xing-esql , this looks like it's related to #112081; do you wanna take a look?

@bpintea
Copy link
Contributor

bpintea commented Oct 10, 2024

From the FROM docs:

Use enclosing double quotes (") or three enclosing double quotes (""") to escape index names that contain special characters:

FROM "this=that", """this[that"""

Whatever is in quotes in the FROM is considered an index pattern only (i.e. excluding a remote cluster name). If one needs to quote the name of the index pattern, but use a remote cluster name, that would look like FROM remoteCluster:"this=that".

So I think the failure is valid and correct.

@stratoula
Copy link
Author

Hey Bogdan. I think that this was working before and I personally find this FROM remoteCluster:"this=that" a very confusing syntax 🤷‍♀

@bpintea
Copy link
Contributor

bpintea commented Oct 11, 2024

I think that this was working before

I see. That probably happened unintentional, though given that : can't be part of an index name, supporting it intentionally should be possible.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
:Analytics/ES|QL AKA ESQL >bug ES|QL-ui Impacts ES|QL UI Team:Analytics Meta label for analytical engine team (ESQL/Aggs/Geo)
Projects
None yet
Development

Successfully merging a pull request may close this issue.

5 participants