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

Issue with cassandra-cli "assume" command and custom types

    XMLWordPrintableJSON

    Details

    • Type: Bug
    • Status: Resolved
    • Priority: Normal
    • Resolution: Fixed
    • Fix Version/s: 1.0.9
    • Component/s: None
    • Labels:
      None
    • Environment:

      Cassandra 1.0.7 on Mac OSX Lion

    • Severity:
      Normal

      Description

      There seems to be an issue with cassandra-cli's assume command with a custom type. I get "Syntax error at position 35: missing EOF at '.'"

      To make sure the issue is not with my custom type, I tried it with the built-in BytesType and got the same error:

      [default@test] assume UserDetails validator as org.apache.cassandra.db.marshal.BytesType;
      Syntax error at position 35: missing EOF at '.'

      I also tried it with single and double quotes with no success:
      [default@test] assume UserDetails validator as 'org.apache.cassandra.db.marshal.BytesType';
      Syntax error at position 32: mismatched input ''org.apache.cassandra.db.marshal.BytesType'' expecting Identifier

      Based on the output of "help assume" I should be able to just pass a fqn of a class.

      > It is also valid to specify the fully-qualified class name to a class that
      > extends org.apache.Cassandra.db.marshal.AbstractType.

        Attachments

        1. CASSANDRA-4081.patch
          2 kB
          Pavel Yaskevich

          Activity

            People

            • Assignee:
              xedin Pavel Yaskevich
              Reporter:
              drew_kutchar Drew Kutcharian
              Authors:
              Pavel Yaskevich
              Reviewers:
              Sylvain Lebresne
            • Votes:
              1 Vote for this issue
              Watchers:
              1 Start watching this issue

              Dates

              • Created:
                Updated:
                Resolved: