Uploaded image for project: 'Cassandra'
  1. Cassandra
  2. CASSANDRA-18322

Warnings when using prepared statement with "drop/create keyspace .." ( after 15252)

    XMLWordPrintableJSON

Details

    • Bug
    • Status: Triage Needed
    • Urgent
    • Resolution: Unresolved
    • None
    • Messaging/Client
    • None
    • Correctness - Recoverable Corruption / Loss
    • Critical
    • All
    • None

    Description

      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

      Attachments

        Issue Links

          Activity

            People

              Unassigned Unassigned
              Aburadeh Mohammad Aburadeh
              Votes:
              0 Vote for this issue
              Watchers:
              3 Start watching this issue

              Dates

                Created:
                Updated: