I am trying to fetch all data in a field to a canvas in the elastic index, but for some reason I am receiving a weird error
here is the sql query I send SELECT app_code FROM "devops_et*"
But I receive this error
Expression failed with the message: [essql] > Unexpected error from Elasticsearch: [verification_exception] Found 1 problem(s) line 1:8: Unknown column [app_code], did you mean [app_code]?
This error is only specific to this field all other fields works perfectly fine. Does any one know what is the problem?
EDIT: upon inspection of the JSON file it seems that the app_code filed has a dot beside it and highlighted in red. Maybe that is the problem? How can I remove it it doesn't seem that I can delete it
@emad101 that restriction on dots being used as leading or trailing character has been introduced in 5.1.3 with the this bug fix.
Given that it's impossible to add such a leading dot field name in my tests on 7.x and the bug fix above, I'm assuming you are testing SQL on a 6.x or 7.x ES version, but with an index created in 5.x or earlier?
@Andrei_Stefan,
I have actually not added any leading dots on my field names, it was automatically done somehow when pushing data. I am also using the latest version.
If you see the below picture, there is a highlighted red dot in the appcode field in the JSON tab
No This is the only one, when I created the index pattern I added "*", I can query through the other field without errors. Only the appcode field that gives the error.
I may have typed the document id incorrectly, the idea was to get the actual document from ES. Can you copy-paste the id from Kibana's JSON tab and get the document?
Apache, Apache Lucene, Apache Hadoop, Hadoop, HDFS and the yellow elephant
logo are trademarks of the
Apache Software Foundation
in the United States and/or other countries.