hbase-dev mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From "Andrew Purtell (JIRA)" <j...@apache.org>
Subject [jira] Updated: (HBASE-2003) [shell] deleteall ignores column if specified
Date Mon, 23 Nov 2009 04:24:39 GMT

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

Andrew Purtell updated HBASE-2003:
----------------------------------

    Assignee: Andrew Purtell
     Summary: [shell] deleteall ignores column if specified  (was: [shell] deleteall does
not work quite as advertised)

> [shell] deleteall ignores column if specified
> ---------------------------------------------
>
>                 Key: HBASE-2003
>                 URL: https://issues.apache.org/jira/browse/HBASE-2003
>             Project: Hadoop HBase
>          Issue Type: Bug
>            Reporter: Andrew Purtell
>            Assignee: Andrew Purtell
>            Priority: Minor
>             Fix For: 0.20.3, 0.21.0
>
>         Attachments: HBASE-2003.patch
>
>
> In the shell, a delete must match the value's coordinates exactly. By default the delete
command uses the latest timestamp but you can provide on explicitly. So you have to delete
each version independent of the others if there are multiple versions of a value. 
> The command 'deleteall' is supposed to clear out a whole row or a whole column of values:
> {noformat}
>  deleteall Delete all cells in a given row; pass a table name, row, and optionally 
>            a column and timestamp
> {noformat}
> but the code won't work as advertised:
> {code}
>     def deleteall(row, column = nil, timestamp = HConstants::LATEST_TIMESTAMP)
>       now = Time.now 
>       d = Delete.new(row.to_java_bytes, timestamp, nil)
>       @table.delete(d)
>       @formatter.header()
>       @formatter.footer(now)
>     end
> {code}
> 'column' is ignored.

-- 
This message is automatically generated by JIRA.
-
You can reply to this email to add a comment to the issue online.


Mime
View raw message