You are viewing a plain text version of this content. The canonical link for it is here.
Posted to common-dev@hadoop.apache.org by "Edward Yoon (JIRA)" <ji...@apache.org> on 2007/12/04 06:27:43 UTC

[jira] Issue Comment Edited: (HADOOP-2339) [Hbase Shell] Delete command with no WHERE clause

    [ https://issues.apache.org/jira/browse/HADOOP-2339?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel#action_12548133 ] 

udanax edited comment on HADOOP-2339 at 12/3/07 9:25 PM:
--------------------------------------------------------------

ugh...   It seems troublesome...

*hql > DELETE columnA: FROM table;*
In this case, only "columnA:" should be deleted.

{code}
Row1             columnA:         ----> to be deleted
                 columnA:a
                 columnA:b
Row2             columnA:         ----> to be deleted
                 columnA:b
                 columnA:c
{code}

....
And then, how can i delete all columns in columnfamily?
I'd like to use the deleteColumn() method to drop the *ColumnFamily*

{code}
DROP TABLE table_name;
DROP COLUMNFAMILY columnfamily_name;
{code}

      was (Author: udanax):
    ugh...   It seems troublesome...

*hql > DELETE columnA: FROM table;*
In this case, only "columnA:" should be deleted.

{code}
columnA:         ----> to be deleted
columnA:a
columnA:b
{code}

....
And then, how can i delete all columns in columnfamily?
I'd like to use the deleteColumn() method to drop the *ColumnFamily*

{code}
DROP TABLE table_name;
DROP COLUMNFAMILY columnfamily_name;
{code}
  
> [Hbase Shell] Delete command with no WHERE clause
> -------------------------------------------------
>
>                 Key: HADOOP-2339
>                 URL: https://issues.apache.org/jira/browse/HADOOP-2339
>             Project: Hadoop
>          Issue Type: Improvement
>          Components: contrib/hbase
>    Affects Versions: 0.16.0
>            Reporter: Edward Yoon
>            Assignee: Edward Yoon
>             Fix For: 0.16.0
>
>         Attachments: 2339.patch
>
>
> using HbaseAdmin.deleteColumn() method.
> {code}
> DELETE column_name FROM table_name;
> {code}

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