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

Brad Schoening commented on CASSANDRA-18037:
--------------------------------------------

[~adelapena] I'm seeing new errors in the pytest about missing blob_as_int, 
could this the related? 

-- Docs: https://docs.pytest.org/en/stable/how-to/capture-warnings.html

*============================================ short test summary info 
============================================*

ERROR 
cqlshlib/test/test_cqlsh_completion.py::{*}TestCqlshCompletion::test_complete_command_words{*}
 - cassandra.InvalidRequest: Error from server: code=2200 [Invalid query] 
message="Unknown function blob_as_int...

ERROR 
cqlshlib/test/test_cqlsh_completion.py::{*}TestCqlshCompletion::test_complete_in_alter_keyspace{*}
 - cassandra.InvalidRequest: Error from server: code=2200 [Invalid query] 
message="Unknown function blob_as_int...

ERROR 
cqlshlib/test/test_cqlsh_completion.py::{*}TestCqlshCompletion::test_complete_in_alter_role{*}
 - cassandra.InvalidRequest: Error from server: code=2200 [Invalid query] 
message="Unknown function blob_as_int...

ERROR 
cqlshlib/test/test_cqlsh_completion.py::{*}TestCqlshCompletion::test_complete_in_alter_table{*}
 - cassandra.InvalidRequest: Error from server: code=2200 [Invalid query] 
message="Unknown function blob_as_int...

ERROR 
cqlshlib/test/test_cqlsh_completion.py::{*}TestCqlshCompletion::test_complete_in_alter_type{*}
 - cassandra.InvalidRequest: Error from server: code=2200 [Invalid query] 
message="Unknown function blob_as_int...

> Use snake case for the names of CQL native functions
> ----------------------------------------------------
>
>                 Key: CASSANDRA-18037
>                 URL: https://issues.apache.org/jira/browse/CASSANDRA-18037
>             Project: Cassandra
>          Issue Type: Improvement
>          Components: CQL/Syntax
>            Reporter: Andres de la Peña
>            Assignee: Andres de la Peña
>            Priority: Normal
>             Fix For: 5.0
>
>          Time Spent: 2h
>  Remaining Estimate: 0h
>
> Most native functions are named all lower case, without underscore nor hyphen 
> to separate words. That's the case, for example, of "intasblob" or 
> "blobasint".
> We also have some functions using camel case, as in "castAsInt" or 
> "castAsTimestamp". Note that the came cased names require quoting due to 
> CQL's case insensitivity.
> Differently to CQL native functions, system keyspaces, tables and columns 
> consistently use snake case. For example, we have "system_schema", 
> "dropped_columns", "default_time_to_live".
> As discussed in [this 
> thread|https://lists.apache.org/thread/k9ml1k4fg6o7mfby1nr3y0mnq9r90dym], we 
> should adopt snake_case for CQL native function names. Also we should provide 
> aliases for the current function names, so we don't break compatibility.



--
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