cassandra-commits mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From "Jonathan Ellis (JIRA)" <>
Subject [jira] [Commented] (CASSANDRA-6710) Support union types
Date Tue, 07 Jul 2015 18:38:04 GMT


Jonathan Ellis commented on CASSANDRA-6710:

> there is a very simple workaround with relatively little downsides: use a blob

Agreed.  I'm just not sure this is worth adding extra complexity for little benefit.

> Support union types
> -------------------
>                 Key: CASSANDRA-6710
>                 URL:
>             Project: Cassandra
>          Issue Type: Improvement
>          Components: API, Core
>            Reporter: Tupshin Harper
>            Priority: Minor
>              Labels: ponies
>             Fix For: 3.x
> 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.

This message was sent by Atlassian JIRA

View raw message