Details

    • Type: New Feature New Feature
    • Status: Resolved
    • Priority: Major Major
    • Resolution: Not a Problem
    • Fix Version/s: None
    • Component/s: API
    • Labels:

      Description

      Eric Evans' suggestions from the mailing list:

      CREATE TABLE test (
        int(10) text,
        uuid(92d21d0a-d6cb-437c-9d3f-b67aa733a19f) bigint
      )
      
      CREATE TABLE test (
        (int)10 text,
        (uuid)92d21d0a-d6cb-437c-9d3f-b67aa733a19f bigint
      )
      

        Activity

        Hide
        paul cannon added a comment -

        I like the latter, if this is going to be syntax that is only supported in CREATE TABLE. Otherwise, it looks like a generic CQL function. (I know there's no technical ambiguity here, yet.)

        Show
        paul cannon added a comment - I like the latter, if this is going to be syntax that is only supported in CREATE TABLE. Otherwise, it looks like a generic CQL function. (I know there's no technical ambiguity here, yet.)
        Hide
        Rick Shaw added a comment -

        I prefer the latter for the same reason. The former will be hard or at least confusing to sort out if functions are introduced. (and I am putting together a proposal for functions now... )

        Show
        Rick Shaw added a comment - I prefer the latter for the same reason. The former will be hard or at least confusing to sort out if functions are introduced. (and I am putting together a proposal for functions now... )
        Hide
        Sylvain Lebresne added a comment -

        Is that really necessary? Knowing the comparator for the CF makes that type information unnecessary, doesn't it? (let me note btw that the examples above are non-sensical as is, it's impossible to mix columns with an int and columns with an uuid).

        Show
        Sylvain Lebresne added a comment - Is that really necessary? Knowing the comparator for the CF makes that type information unnecessary, doesn't it? (let me note btw that the examples above are non-sensical as is, it's impossible to mix columns with an int and columns with an uuid).
        Hide
        Jonathan Ellis added a comment - - edited

        You're right: if we restrict non-wide-rows to utf8 columns, we don't need this at all (given CASSANDRA-2474), since that allows specifying a comparator for wide rows (since the columns become a single, transposed column definition, whose type is the comparator type and whose value is the default_validator).

        Show
        Jonathan Ellis added a comment - - edited You're right: if we restrict non-wide-rows to utf8 columns, we don't need this at all (given CASSANDRA-2474 ), since that allows specifying a comparator for wide rows (since the columns become a single, transposed column definition, whose type is the comparator type and whose value is the default_validator).

          People

          • Assignee:
            Unassigned
            Reporter:
            Jonathan Ellis
          • Votes:
            0 Vote for this issue
            Watchers:
            2 Start watching this issue

            Dates

            • Created:
              Updated:
              Resolved:

              Development