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

CQL3: Allow preparing the consistency level, timestamp and ttl

    XMLWordPrintableJSON

Details

    • Improvement
    • Status: Resolved
    • Low
    • Resolution: Fixed
    • 2.0 beta 1
    • None

    Description

      It could be useful to allow the preparation of the consitency level, the timestamp and the ttl. I.e. to allow:

      UPDATE foo SET .. USING CONSISTENCY ? AND TIMESTAMP ? AND TTL ? 
      

      A slight concern is that when preparing a statement we return the names of the prepared variables, but none of timestamp, ttl and consistency are reserved names currently, so returning those as names could conflict with a column name. We can either:

      • make these reserved identifier (I have to add that I'm not a fan because at least for "timestamp", I think that's a potentially useful and common column name).
      • use some specific special character to indicate those are not column names, like returning "[timestamp]", "[ttl]", "[consistency]".

      Attachments

        Issue Links

          Activity

            People

              slebresne Sylvain Lebresne
              slebresne Sylvain Lebresne
              Sylvain Lebresne
              Aleksey Yeschenko
              Votes:
              7 Vote for this issue
              Watchers:
              10 Start watching this issue

              Dates

                Created:
                Updated:
                Resolved: