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

Dot/period at start of index name fails to parse #121

Closed
aetter opened this issue Jul 18, 2019 · 3 comments
Closed

Dot/period at start of index name fails to parse #121

aetter opened this issue Jul 18, 2019 · 3 comments
Assignees
Labels
bug Something isn't working

Comments

@aetter
Copy link
Contributor

aetter commented Jul 18, 2019

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

This query fails with the following error:

{
  "error": {
    "reason": "Invalid SQL query",
    "details": "ERROR. token : DOT, pos : 15",
    "type": "ParserException"
  },
  "status": 400
}

Indices starting with . is perfectly valid in Elasticsearch, so unless there's a good reason, I think we should support this operation.

@aetter aetter added the bug Something isn't working label Jul 18, 2019
@abbashus
Copy link
Contributor

Thanks @aetter , looks like a valid case. Even wrapping .kibana in back-ticks and single quotes is not working. We will look into it and come with a fix.

@dai-chen
Copy link
Member

Thanks @aetter , looks like a valid case. Even wrapping .kibana in back-ticks and single quotes is not working. We will look into it and come with a fix.

I remember we ran into the similar issue for identifiers in back-ticks when evaluating support for Tableau. @qreshi may have more context.

@dai-chen dai-chen self-assigned this Sep 27, 2019
@dai-chen dai-chen assigned chloe-zh and unassigned dai-chen Oct 9, 2019
@dai-chen
Copy link
Member

dai-chen commented Oct 9, 2019

New issue related: #212

Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
bug Something isn't working
Projects
None yet
Development

No branches or pull requests

4 participants