You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Hi @wjonkerhulst , I tried the same steps in the documentation, but was not able to reproduce it. Could you try to execute in dev tools by using the following command to see what the error is returned?
POST _opendistro/_sql
{
"query":"search source=accounts | where age > 18 | fields firstname, lastname"
}
I can confirm this is still an issue in 1.1. I cannot get multi-line to work in the query workbench, so that might be the issue. @chloe-zh do you know if that is a known issue?
Hello @chloe-zh the issue is that 'Query Workbench' is not escaping quotes etc.
Attempting to run search source=accounts | where gender="F" results in: Events: no response, this query is not runnable.
However running search source=accounts | where gender=\"F\" returns the expected data.
The frustrating part is that documentation is either incorrect or an escaping bug has been introduced.
Activity
[-][BUG][/-][+][BUG] PPL example on website not working[/+]CEHENKLE commentedon Aug 24, 2021
Transferring to the SQL team. If I've move this in error, please @ me and I'll move it back :)
chloe-zh commentedon Sep 4, 2021
Hi @wjonkerhulst , I tried the same steps in the documentation, but was not able to reproduce it. Could you try to execute in dev tools by using the following command to see what the error is returned?
Blurazzle commentedon Sep 6, 2021
@chloe-zh

chloe-zh commentedon Sep 6, 2021
My bad, the endpoint should be _opendistro/_ppl
Blurazzle commentedon Sep 6, 2021
@chloe-zh No problem. The PPL endpoint works.
Blurazzle commentedon Sep 6, 2021
@chloe-zh I think I have found the problem.
A single line query works:

But when I copy and paste the example it is multi-line and the query stops working.

elfisher commentedon Oct 13, 2021
I can confirm this is still an issue in 1.1. I cannot get multi-line to work in the query workbench, so that might be the issue. @chloe-zh do you know if that is a known issue?
camAtGitHub commentedon Nov 9, 2021
Hello @chloe-zh the issue is that 'Query Workbench' is not escaping quotes etc.
Attempting to run
search source=accounts | where gender="F"results in:Events: no response, this query is not runnable.However running
search source=accounts | where gender=\"F\"returns the expected data.The frustrating part is that documentation is either incorrect or an escaping bug has been introduced.
Thanks
(I'm running OS 1.1.0 docker build BTW)
joshuali925 commentedon Nov 30, 2021
Hi, looks like there are two issues:
Both will be fixed in #305, thanks for reporting them!
Add Day_Of_Month Function As An Alias Of DayOfMonth (#1227)
Add Day_Of_Month Function As An Alias Of DayOfMonth (#1227)
Add Day_Of_Month Function As An Alias Of DayOfMonth (#1227)