You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@cassandra.apache.org by "Jonathan Ellis (JIRA)" <ji...@apache.org> on 2011/06/24 16:49:47 UTC

[jira] [Updated] (CASSANDRA-2821) CLI remove ascii column

     [ https://issues.apache.org/jira/browse/CASSANDRA-2821?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel ]

Jonathan Ellis updated CASSANDRA-2821:
--------------------------------------

      Description: 
[default@sdo] incr counters[ascii('EU')][ascii('null')];
Value incremented.
[default@sdo] list counters;
Using default limit of 100
-------------------
RowKey: 4555
=> (counter=6e756c6c, value=1)

1 Row Returned.
[default@sdo] del counters[ascii('EU')][ascii('null')];
org.apache.cassandra.db.marshal.MarshalException: cannot parse
'FUNCTION_CALL' as hex bytes
[default@sdo]

Suggested workaround, although not tested:

assume counters comparator as bytes;
del counters['EU'][0];

  was:

[default@sdo] incr counters[ascii('EU')][ascii('null')];
Value incremented.
[default@sdo] list counters;
Using default limit of 100
-------------------
RowKey: 4555
=> (counter=6e756c6c, value=1)

1 Row Returned.
[default@sdo] del counters[ascii('EU')][ascii('null')];
org.apache.cassandra.db.marshal.MarshalException: cannot parse
'FUNCTION_CALL' as hex bytes
[default@sdo]

Suggested workaround, although not tested:

assume counters comparator as bytes;
del counters['EU'][0];

    Fix Version/s: 0.8.2
         Assignee: Pavel Yaskevich
          Summary: CLI remove ascii column  (was: CLI remove null column)

Edit to clarify there is nothing magic about string 'null'.

Probably affects 0.7 too?

> CLI remove ascii column
> -----------------------
>
>                 Key: CASSANDRA-2821
>                 URL: https://issues.apache.org/jira/browse/CASSANDRA-2821
>             Project: Cassandra
>          Issue Type: Bug
>          Components: Tools
>    Affects Versions: 0.8.0
>            Reporter: Sasha Dolgy
>            Assignee: Pavel Yaskevich
>            Priority: Minor
>             Fix For: 0.8.2
>
>
> [default@sdo] incr counters[ascii('EU')][ascii('null')];
> Value incremented.
> [default@sdo] list counters;
> Using default limit of 100
> -------------------
> RowKey: 4555
> => (counter=6e756c6c, value=1)
> 1 Row Returned.
> [default@sdo] del counters[ascii('EU')][ascii('null')];
> org.apache.cassandra.db.marshal.MarshalException: cannot parse
> 'FUNCTION_CALL' as hex bytes
> [default@sdo]
> Suggested workaround, although not tested:
> assume counters comparator as bytes;
> del counters['EU'][0];

--
This message is automatically generated by JIRA.
For more information on JIRA, see: http://www.atlassian.com/software/jira