vcli
vcli copied to clipboard
Schema names that are upper case do not work properly with autocompletion
If I attempt to query a schema that is in the format NAME_ID the autocompletion returns the schema name in double quotes, but then fails to return any additional suggestions. If I query a schema name that only contains lower case letters the autocompletion works as expected.
SELECT * FROM "SCHEMA_NAME_000".
Log:
2017-03-02 12:17:07,666 (56424/MainThread) vcli.key_bindings DEBUG - Detected <Tab> key.
2017-03-02 12:17:07,670 (56424/Thread-104) vcli.vcompleter DEBUG - Suggestion type: 'table'
2017-03-02 12:17:07,671 (56424/Thread-104) vcli.vcompleter DEBUG - Suggestion type: 'view'
I have a fix for this issue that I will open a PR for within the next couple of days.
The regex pattern just needs to be adjusted in the VCompleter class.