Windows: Vespa yql - query curl conversion error
Closed this issue · 1 comments
John42506176Linux commented
Describe the bug
On a Windows machine, vespa queries do not convert quotes correctly causing errors with queries requiring quotes.
For example vespa query -v 'yql=select * from news where default contains "music"'.
To Reproduce
Steps to reproduce the behavior:
- Used sample application vespa news Step - applications, feeding and querying
- Query 'vespa query -v 'yql=select * from news where default contains "music"'' fails
- See Error
Expected behavior
Successful query
Environment (please complete the following information):
- OS: Windows
- Infrastructure: Self-hosted
Vespa version
Vespa CLI 8.416.42
Additional Context
Error does not occur on WSL.
arnej27959 commented
this is not a vespa CLI problem; the issue is that you must quote in the way that the windows "cmd" command line will handle. The correct syntax for that command line shell is
vespa query "yql=select * from news where default contains ""music"""