JRobTS opened a new issue, #17628:
URL: https://github.com/apache/druid/issues/17628
### Description
The Druid Console Workbench will auto-complete in the wrong contexts and
should be smarter.
I propose the following changes:
* "enter" shouldn't trigger an auto-complete
* Numerals should not be candidate for autocompletion
* Inside of double quote "" blocks, function names should not be candidate
for autocompletion: datasource and field names only
* Inside of single quote '' blocks, should not be candidate for
autocompletion
### Motivation
Make working with Workbench less annoying.
For example, "1" will auto-complete as "LOG10" on (enter). This is extremely
annoying as it's pretty typical to write a query that ends in `GROUP BY 1`;
only to have auto-complete change it to `GROUP BY LOG10`.
Other annoyances include when writing inside of a string block ("" or '')
the auto-completer will try to fill in function names. `AND subject = 'foo'`
will auto-complete to `AND subject = 'FLOOR'`
Datasource and field names should be within context for double quotes "",
but not function names. And I can't think of any reason to auto-complete when
inside of single quotes ''.
--
This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.
To unsubscribe, e-mail: [email protected]
For queries about this service, please contact Infrastructure at:
[email protected]
---------------------------------------------------------------------
To unsubscribe, e-mail: [email protected]
For additional commands, e-mail: [email protected]