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

Support union types

    XMLWordPrintableJSON

Details

    • Improvement
    • Status: Resolved
    • Low
    • Resolution: Not A Problem
    • None
    • Legacy/CQL

    Description

      I sometimes find myself wanting to abuse Cassandra datatypes when I want to interleave two different types in the same column.

      An example is in CASSANDRA-6167 where an approach is to tag what would normally be a numeric field with text indicating that it is special in some ways.

      A more elegant approach would be to be able to explicitly define disjoint unions in the style of Haskell's and Scala's Either types.

      Attachments

        Activity

          People

            Unassigned Unassigned
            tupshin Tupshin Harper
            Votes:
            0 Vote for this issue
            Watchers:
            5 Start watching this issue

            Dates

              Created:
              Updated:
              Resolved: