Formatter for YQL queries #36246
dainiusjocas
started this conversation in
General
Replies: 1 comment 2 replies
-
|
I have a tangent solution, because I lean towards the Select syntax. For that, I use the Navigator for my daily Vespa-ing. I know, it's a WiP tool, but it does the job (including aligning JSON). And it will support much more in the following weeks (for the Select syntax at least). For pure YQL, it does sound like it would be an improvement for the IDE extensions. Feel free to open an issue/PR there. I'm thinking that a keyboard shortcut could format the YQL based on some predefined rules (WHERE, LIMIT, parentheses...). That's my opinion, at least 😅 |
Beta Was this translation helpful? Give feedback.
2 replies
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Uh oh!
There was an error while loading. Please reload this page.
-
It is not uncommon for YQL queries to become large and complex.
Also, when queries are constructed in java searchers it is hard to test the output.
It would be great if vespa extensions for vscode/intellij could properly format YQL. But they can't, only the syntax highlighting is available.
Currently, the closest thing to a solution for me is to format with a generic SQL formatter. But Vespa annotations create problems for them and results are not great.
How others are solving such issue?
Beta Was this translation helpful? Give feedback.
All reactions