Skip to content
This repository was archived by the owner on Aug 2, 2022. It is now read-only.
This repository was archived by the owner on Aug 2, 2022. It is now read-only.

Error when an index name contains a dot midstream #322

@dai-chen

Description

@dai-chen

I get a similar error when an index name contains a dot midstream.

POST _opendistro/_sql
{
  "query": "SELECT * FROM cwl-foo-bar-baz-2019.10.19 LIMIT 1"
}

It complains about the first dot.

If I surround the index name with backticks I get:

Field [`cwl-foo-bar-baz-2019.10.19`] cannot be found or used here.

Interestingly, it works on indexes with a dot as the first char.

POST _opendistro/_sql
{
  "query": "SELECT * FROM .kibana LIMIT 1"
}

Originally posted by @tjbaker in #209 (comment)

Metadata

Metadata

Assignees

Labels

Type

No type

Projects

No projects

Milestone

No milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions