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

operator functionality in CQL

Agile BoardAttach filesAttach ScreenshotBulk Copy AttachmentsBulk Move AttachmentsVotersWatch issueWatchersCreate sub-taskMoveLinkCloneLabelsUpdate Comment AuthorReplace String in CommentUpdate Comment VisibilityDelete Comments
    XMLWordPrintableJSON

Details

    • New Feature
    • Status: Resolved
    • Normal
    • Resolution: Fixed
    • None
    • Legacy/CQL

    Description

      Intention: Allow operators in CQL

      Operators could be decimal arithmetics + - * / or boolen arithmetics | & ! or string 'arithmetics' +

      SELECT tab.label + ' = ' + tab.value FROM foo.tab
      SELECT * FROM tab WHERE tab.label + ' = ' + tab.value = 'foo = bar'
      as well as
      CREATE INDEX idx ON tab ( tab.tabel + '=' + tab.value )
      or
      CREATE INDEX idx ON tab (label) WHERE contains(tab.tabel, 'very-important-key')

      Operators could be mapped to UDFs like this:
      + mapped to UDF cstarstd::oper_plus(...)
      - mapped to UDF cstarstd::oper_minus(...)
      or handled directly via Cql.g in 'special' code

      Attachments

        Issue Links

        Activity

          This comment will be Viewable by All Users Viewable by All Users
          Cancel

          People

            blerer Benjamin Lerer Assign to me
            snazy Robert Stupp
            Benjamin Lerer
            Votes:
            1 Vote for this issue
            Watchers:
            7 Start watching this issue

            Dates

              Created:
              Updated:
              Resolved:

              Slack

                Issue deployment