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

Stefan Miklosovic commented on CASSANDRA-18322:
-----------------------------------------------

[CASSANDRA-18322|https://github.com/instaclustr/cassandra/tree/CASSANDRA-18322]
{noformat}
java17_pre-commit_tests                         
  ✓ j17_build                                         5m 5s
  ✓ j17_cqlsh_dtests_py311                           6m 55s
  ✓ j17_cqlsh_dtests_py311_vnode                     7m 15s
  ✓ j17_cqlsh_dtests_py38                            7m 30s
  ✓ j17_cqlsh_dtests_py38_vnode                      7m 11s
  ✓ j17_cqlshlib_cython_tests                        7m 25s
  ✓ j17_cqlshlib_tests                               6m 41s
  ✓ j17_dtests                                       37m 9s
  ✓ j17_dtests_latest                               37m 44s
  ✓ j17_dtests_vnode                                35m 45s
  ✓ j17_unit_tests                                  13m 23s
  ✓ j17_unit_tests_repeat                            8m 33s
  ✓ j17_utests_latest                               13m 39s
  ✓ j17_utests_latest_repeat                         8m 25s
  ✓ j17_utests_oa                                   13m 26s
  ✓ j17_utests_oa_repeat                             8m 35s
  ✕ j17_jvm_dtests                                  25m 47s
  ✕ j17_jvm_dtests_latest_vnode                     26m 42s
      org.apache.cassandra.distributed.test.tcm.CMSPlacementAfterMoveTest 
testMoveToCMS
java17_separate_tests                            
  ✓ j17_build                                        4m 33s
  ✓ j17_dtests                                       36m 6s
java11_pre-commit_tests                         
java11_separate_tests                            
{noformat}

[java17_pre-commit_tests|https://app.circleci.com/pipelines/github/instaclustr/cassandra/4573/workflows/9f21980e-ee05-4525-a12e-e3fb404d3f7d]
[java17_separate_tests|https://app.circleci.com/pipelines/github/instaclustr/cassandra/4573/workflows/b8ae763b-f5ab-48fd-a541-1dff50f3be03]
[java11_pre-commit_tests|https://app.circleci.com/pipelines/github/instaclustr/cassandra/4573/workflows/6f73c0f6-7dc1-4d8c-b3fa-47b9c30dc0ad]
[java11_separate_tests|https://app.circleci.com/pipelines/github/instaclustr/cassandra/4573/workflows/ed4b9361-bee8-45b8-95e1-19219a8f9b24]


> Warn about unqualified prepared statement only if it is a select, update, 
> delete, insert
> ----------------------------------------------------------------------------------------
>
>                 Key: CASSANDRA-18322
>                 URL: https://issues.apache.org/jira/browse/CASSANDRA-18322
>             Project: Cassandra
>          Issue Type: Improvement
>          Components: Messaging/Client
>            Reporter: Mohammad Aburadeh
>            Assignee: Stefan Miklosovic
>            Priority: Normal
>             Fix For: 5.x
>
>          Time Spent: 0.5h
>  Remaining Estimate: 0h
>
> Hi, 
> We get the following warnings when we use prepared statements with "create 
> keyspace ... " or "drop keyspace" statements.
> "
> {{USE <keyspace>}} with prepared statements is considered to be an 
> anti-pattern due to ambiguity in non-qualified table names. Please consider 
> removing instances of {{{}Session#setKeyspace(<keyspace>){}}}, 
> {{Session#execute("USE <keyspace>")}} and {{cluster.newSession(<keyspace>)}} 
> from your code, and always use fully qualified table names (e.g. 
> <keyspace>.<table>). Keyspace used: null, statement keyspace: null, statement 
> id: 8153d922390fdf9a9963bfeda85b2f3b at 
> "
> Such statements are already full-qualified. So, why are we getting this 
> warning? 
> Regards
> Mohammad



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