Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Keyword completion: Update SQLCompleter with keywords from aggregation functions? #360

Open
amotl opened this issue Jan 20, 2021 · 0 comments

Comments

@amotl
Copy link
Member

amotl commented Jan 20, 2021

Hi there,

while applying some housekeeping to the repository, I found the patch [1] by @chaudum which adds the analyze keyword.

While this has been already integrated into the main branch on behalf of a different commit, I am asking myself if any of the aggregation functions [2] should also be part of the list of keywords.

SELECT word FROM pg_catalog.pg_get_keywords(); doesn't contain any of them either, so this might well be intentional. However, some of the scalar functions like trim, left and right are both included within the documentation [3] and the synthesized pg_catalog.pg_get_keywords().

On the other hand, some scalar functions like floor or ceil are included within the documentation but are not part of either pg_catalog.pg_get_keywords() nor the list of fallback keywords [4].

Please let me know if this should be improved on different ends.

With kind regards,
Andreas.

[1] https://github.com/crate/crash/compare/h/analyze?expand=1
[2] https://github.com/crate/crate/blob/4.4.0/docs/general/builtins/aggregation.rst
[3] https://github.com/crate/crate/blob/4.4.0/docs/general/builtins/scalar.rst
[4] https://github.com/crate/crash/blob/0.27.0/crate/crash/repl.py#L115-L151

cc @seut, @jayeff, @proddata

@amotl amotl changed the title Update SQLCompleter with keywords from aggregation functions? Keyword completion: Update SQLCompleter with keywords from aggregation functions? Oct 6, 2023
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

No branches or pull requests

1 participant