[ 
https://issues.apache.org/jira/browse/CASSANDRA-19631?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=17871229#comment-17871229
 ] 

Stefan Miklosovic edited comment on CASSANDRA-19631 at 8/6/24 6:58 AM:
-----------------------------------------------------------------------

1) we should use snake-case function names like we moved to it here 
https://issues.apache.org/jira/browse/CASSANDRA-18037
2) there are no data-masking functions included 
https://github.com/apache/cassandra/blob/trunk/doc/modules/cassandra/pages/developing/cql/functions.adoc#data-masking-functions
3) collection functions are not there either yet 
https://github.com/apache/cassandra/blob/trunk/doc/modules/cassandra/pages/developing/cql/functions.adoc#collection-functions

Also, I am not completely sure how this works, but when I do

{code}
SELECT TOUNIX<tab>
{code}

then it will not autocomplete that. Sure, it will show what I could type there, 
it will offer "TOUNIXTIMESTAMP" as it prints all the possibilities on a new 
line, but it will _not_ autocomplete that on pressing "tab" the same way as it 
is done when I, for example, do "select * from system_auth.iden<tab>".

I am not sure if this was always the case. If it was, is not there some way to 
autocomplete this? I do not see any functional difference between 
autocompleting tables and other syntax and this.


was (Author: smiklosovic):
1) we should use snake-case function names like we moved to it here 
https://issues.apache.org/jira/browse/CASSANDRA-18037
2) there are no data-masking functions included 
https://github.com/apache/cassandra/blob/trunk/doc/modules/cassandra/pages/developing/cql/functions.adoc#data-masking-functions
3) collection functions are not there either yet 
https://github.com/apache/cassandra/blob/trunk/doc/modules/cassandra/pages/developing/cql/functions.adoc#collection-functions

Also, I am not completely sure how this works, but when I do

{code}
SELECT TOUNIX<tab>
{code}

then it will not autocomplete that. Sure, it will show what I could type there, 
it will offer "TOUNIXTIMESTAMP" as it prints all the possibilities on a new 
line, but it will _not_ autocomplete that on pressing "tab" the same way as it 
is done when I, for example, do "select * from system_auth.iden<tab>".

> Consider autocompletion of in-built functions in CQLSH
> ------------------------------------------------------
>
>                 Key: CASSANDRA-19631
>                 URL: https://issues.apache.org/jira/browse/CASSANDRA-19631
>             Project: Cassandra
>          Issue Type: Improvement
>          Components: CQL/Interpreter
>            Reporter: Stefan Miklosovic
>            Assignee: Dhanush Ananthkar
>            Priority: Normal
>
> Why do we not autocomplete native functions in CQLSH shell? I am pretty lost 
> in what functions are there to choose from without consulting the 
> documentation.
> Additionally, the documentation on [Blob conversion 
> functions|https://github.com/apache/cassandra/blob/trunk/doc/cql3/CQL.textile#blob-conversion-functions]
>  could use an example, as done for the other builtins. 



--
This message was sent by Atlassian Jira
(v8.20.10#820010)

---------------------------------------------------------------------
To unsubscribe, e-mail: [email protected]
For additional commands, e-mail: [email protected]

Reply via email to