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

CLI "drop index" doesn't handle numeric-only hex column identifiers properly

    XMLWordPrintableJSON

Details

    • Bug
    • Status: Resolved
    • Low
    • Resolution: Fixed
    • 0.8.5
    • Legacy/Tools
    • None
    • Low

    Description

      CLI drop index doesn't accept requests to drop columns whose hex names include only numeric characters. The 617070 column name below is col2.

      [default@Host] use MyKeyspace;
      Authenticated to keyspace: MyKeyspace
      [default@Host] drop index on MyCF.617070;
      Syntax error at position 22: mismatched input '617070' expecting Identifier

      While drop index seems to parse correctly with alpha chars included:

      [default@Host] drop index on MyCF.617070x;
      Column '617070x' definition was not found in ColumnFamily 'MyCF'.
      [default@Host] drop index on MyCF.col2;
      Column 'col2' definition was not found in ColumnFamily 'MyCF'.

      cassandra-user thread: http://mail-archives.apache.org/mod_mbox/cassandra-user/201108.mbox/%3CB2D1533B-C69E-467A-9653-1D086E33227C@thelastpickle.com%3E

      Attachments

        1. CASSANDRA-3054.patch
          3 kB
          Pavel Yaskevich

        Issue Links

          Activity

            People

              xedin Pavel Yaskevich
              dkuebric Dan Kuebrich
              Pavel Yaskevich
              Jonathan Ellis
              Votes:
              0 Vote for this issue
              Watchers:
              0 Start watching this issue

              Dates

                Created:
                Updated:
                Resolved: