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

provide a cardinality function for collection types ( CQL3 )

    XMLWordPrintableJSON

Details

    • Improvement
    • Status: Open
    • Normal
    • Resolution: Unresolved
    • None
    • Legacy/CQL

    Description

      Currently , cql3 doesn't provide a cardinality function for collection types. It'll be great to have one:

      select content, cardinality(like_set),cardinality(dislike_set) from comments where id=?;
      

      or size as keyword

      select content, size(like_set),size(dislike_set) from comments where id=?;
      

      Something similar in SQL is cardinality of nested tables .

      Attachments

        Issue Links

          Activity

            People

              Unassigned Unassigned
              liqusha Ahmet AKYOL
              Votes:
              0 Vote for this issue
              Watchers:
              5 Start watching this issue

              Dates

                Created:
                Updated: