You are viewing a plain text version of this content. The canonical link for it is here.
Posted to dev@hbase.apache.org by "Slava (JIRA)" <ji...@apache.org> on 2008/10/26 14:24:44 UTC

[jira] Created: (HBASE-961) Delete multiple columns by regular expression

Delete multiple columns by regular expression
---------------------------------------------

                 Key: HBASE-961
                 URL: https://issues.apache.org/jira/browse/HBASE-961
             Project: Hadoop HBase
          Issue Type: New Feature
          Components: client
         Environment: HBase 0.18.0
            Reporter: Slava


Hi.
I tried to find a way to delete multiple columns that their names match some regular expression, but this functionality is missing (i think).
Is it possible to add such functionality ?

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


[jira] Commented: (HBASE-961) Delete multiple columns by regular expression

Posted by "Samuel Guo (JIRA)" <ji...@apache.org>.
    [ https://issues.apache.org/jira/browse/HBASE-961?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=12645428#action_12645428 ] 

Samuel Guo commented on HBASE-961:
----------------------------------

> Why COLFAMILY_REGEX in HBaseTestCase.java and not in TestDeleteFamily.java where it is only place used? (I'm guessing you are trying to follow a discerned patten?)

hmm, yes, it is only place used. I will change it.

> Is the regex correct? Seems like it does not allow for the ':' columnfamily delimiter character? colA in your test is 'colfamily1:a' if I read it right and a regex of "col[a-zA-Z]*1" won't match? (Whats the '1' on the end for?).

ColumnFamily Regex just match the family name without the ':' columnfamily delimiter character. 
colA colB in the family regex test belongs to the family "colfamily1", and it matches the regex "col[a-zA-Z]*1"

> Is deleteFamilyByRegex needed? Or is it that deleteAllByRegex can't be made do this operation?
deleteFamilyRegex will be better than deleteAllByRegex if we all to delete all the columns whose family name match the regex.
because deleteFamilyByRegex will skip the HStores whose family name dosen't match the familyname regex.
And if use deleteAllByRegex to delete those families, it will scan all the HStores to match.


> Delete multiple columns by regular expression
> ---------------------------------------------
>
>                 Key: HBASE-961
>                 URL: https://issues.apache.org/jira/browse/HBASE-961
>             Project: Hadoop HBase
>          Issue Type: New Feature
>          Components: client
>         Environment: HBase 0.18.0
>            Reporter: Slava
>            Assignee: Samuel Guo
>         Attachments: HBASE-961.patch
>
>
> Hi.
> I tried to find a way to delete multiple columns that their names match some regular expression, but this functionality is missing (i think).
> Is it possible to add such functionality ?

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


[jira] Assigned: (HBASE-961) Delete multiple columns by regular expression

Posted by "Jim Kellerman (JIRA)" <ji...@apache.org>.
     [ https://issues.apache.org/jira/browse/HBASE-961?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel ]

Jim Kellerman reassigned HBASE-961:
-----------------------------------

    Assignee: Samuel Guo

> Delete multiple columns by regular expression
> ---------------------------------------------
>
>                 Key: HBASE-961
>                 URL: https://issues.apache.org/jira/browse/HBASE-961
>             Project: Hadoop HBase
>          Issue Type: New Feature
>          Components: client
>         Environment: HBase 0.18.0
>            Reporter: Slava
>            Assignee: Samuel Guo
>
> Hi.
> I tried to find a way to delete multiple columns that their names match some regular expression, but this functionality is missing (i think).
> Is it possible to add such functionality ?

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


[jira] Updated: (HBASE-961) Delete multiple columns by regular expression

Posted by "Samuel Guo (JIRA)" <ji...@apache.org>.
     [ https://issues.apache.org/jira/browse/HBASE-961?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel ]

Samuel Guo updated HBASE-961:
-----------------------------

    Attachment: HBASE-961_V01.patch

a new patch attached.

> Delete multiple columns by regular expression
> ---------------------------------------------
>
>                 Key: HBASE-961
>                 URL: https://issues.apache.org/jira/browse/HBASE-961
>             Project: Hadoop HBase
>          Issue Type: New Feature
>          Components: client
>         Environment: HBase 0.18.0
>            Reporter: Slava
>            Assignee: Samuel Guo
>         Attachments: HBASE-961.patch, HBASE-961_V01.patch
>
>
> Hi.
> I tried to find a way to delete multiple columns that their names match some regular expression, but this functionality is missing (i think).
> Is it possible to add such functionality ?

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


[jira] Commented: (HBASE-961) Delete multiple columns by regular expression

Posted by "Samuel Guo (JIRA)" <ji...@apache.org>.
    [ https://issues.apache.org/jira/browse/HBASE-961?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=12644962#action_12644962 ] 

Samuel Guo commented on HBASE-961:
----------------------------------

I would like to work on this jira. Could I ?

> Delete multiple columns by regular expression
> ---------------------------------------------
>
>                 Key: HBASE-961
>                 URL: https://issues.apache.org/jira/browse/HBASE-961
>             Project: Hadoop HBase
>          Issue Type: New Feature
>          Components: client
>         Environment: HBase 0.18.0
>            Reporter: Slava
>
> Hi.
> I tried to find a way to delete multiple columns that their names match some regular expression, but this functionality is missing (i think).
> Is it possible to add such functionality ?

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


[jira] Commented: (HBASE-961) Delete multiple columns by regular expression

Posted by "stack (JIRA)" <ji...@apache.org>.
    [ https://issues.apache.org/jira/browse/HBASE-961?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=12645420#action_12645420 ] 

stack commented on HBASE-961:
-----------------------------


Why COLFAMILY_REGEX in HBaseTestCase.java and not in TestDeleteFamily.java where it is only place used? (I'm guessing you are trying to follow a discerned patten?)

Is the regex correct?  Seems like it does not allow for the ':' columnfamily delimiter character?  colA in your test is 'colfamily1:a' if I read it right and a regex of "col[a-zA-Z]*1" won't match? (Whats the '1' on the end for?).

Is deleteFamilyByRegex needed?  Or is it that deleteAllByRegex can't be made do this operation?

Otherwise, patch looks great.



> Delete multiple columns by regular expression
> ---------------------------------------------
>
>                 Key: HBASE-961
>                 URL: https://issues.apache.org/jira/browse/HBASE-961
>             Project: Hadoop HBase
>          Issue Type: New Feature
>          Components: client
>         Environment: HBase 0.18.0
>            Reporter: Slava
>            Assignee: Samuel Guo
>         Attachments: HBASE-961.patch
>
>
> Hi.
> I tried to find a way to delete multiple columns that their names match some regular expression, but this functionality is missing (i think).
> Is it possible to add such functionality ?

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


[jira] Commented: (HBASE-961) Delete multiple columns by regular expression

Posted by "Slava (JIRA)" <ji...@apache.org>.
    [ https://issues.apache.org/jira/browse/HBASE-961?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=12644964#action_12644964 ] 

Slava commented on HBASE-961:
-----------------------------

Sure :-) Thank You.




> Delete multiple columns by regular expression
> ---------------------------------------------
>
>                 Key: HBASE-961
>                 URL: https://issues.apache.org/jira/browse/HBASE-961
>             Project: Hadoop HBase
>          Issue Type: New Feature
>          Components: client
>         Environment: HBase 0.18.0
>            Reporter: Slava
>
> Hi.
> I tried to find a way to delete multiple columns that their names match some regular expression, but this functionality is missing (i think).
> Is it possible to add such functionality ?

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


[jira] Commented: (HBASE-961) Delete multiple columns by regular expression

Posted by "stack (JIRA)" <ji...@apache.org>.
    [ https://issues.apache.org/jira/browse/HBASE-961?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=12645436#action_12645436 ] 

stack commented on HBASE-961:
-----------------------------

Sounds good Samuel.  Load up a new patch.

> Delete multiple columns by regular expression
> ---------------------------------------------
>
>                 Key: HBASE-961
>                 URL: https://issues.apache.org/jira/browse/HBASE-961
>             Project: Hadoop HBase
>          Issue Type: New Feature
>          Components: client
>         Environment: HBase 0.18.0
>            Reporter: Slava
>            Assignee: Samuel Guo
>         Attachments: HBASE-961.patch
>
>
> Hi.
> I tried to find a way to delete multiple columns that their names match some regular expression, but this functionality is missing (i think).
> Is it possible to add such functionality ?

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


[jira] Updated: (HBASE-961) Delete multiple columns by regular expression

Posted by "Samuel Guo (JIRA)" <ji...@apache.org>.
     [ https://issues.apache.org/jira/browse/HBASE-961?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel ]

Samuel Guo updated HBASE-961:
-----------------------------

    Attachment: HBASE-961.patch

Attach my patch.
Can anyone review my code? Thanks in advance.

> Delete multiple columns by regular expression
> ---------------------------------------------
>
>                 Key: HBASE-961
>                 URL: https://issues.apache.org/jira/browse/HBASE-961
>             Project: Hadoop HBase
>          Issue Type: New Feature
>          Components: client
>         Environment: HBase 0.18.0
>            Reporter: Slava
>            Assignee: Samuel Guo
>         Attachments: HBASE-961.patch
>
>
> Hi.
> I tried to find a way to delete multiple columns that their names match some regular expression, but this functionality is missing (i think).
> Is it possible to add such functionality ?

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


[jira] Commented: (HBASE-961) Delete multiple columns by regular expression

Posted by "Slava (JIRA)" <ji...@apache.org>.
    [ https://issues.apache.org/jira/browse/HBASE-961?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=12645702#action_12645702 ] 

Slava commented on HBASE-961:
-----------------------------

Thank You very much.I'm going to use it.

Best Regards.




> Delete multiple columns by regular expression
> ---------------------------------------------
>
>                 Key: HBASE-961
>                 URL: https://issues.apache.org/jira/browse/HBASE-961
>             Project: Hadoop HBase
>          Issue Type: New Feature
>          Components: client
>         Environment: HBase 0.18.0
>            Reporter: Slava
>            Assignee: Samuel Guo
>             Fix For: 0.19.0
>
>         Attachments: HBASE-961.patch, HBASE-961_V01.patch
>
>
> Hi.
> I tried to find a way to delete multiple columns that their names match some regular expression, but this functionality is missing (i think).
> Is it possible to add such functionality ?

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


[jira] Resolved: (HBASE-961) Delete multiple columns by regular expression

Posted by "stack (JIRA)" <ji...@apache.org>.
     [ https://issues.apache.org/jira/browse/HBASE-961?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel ]

stack resolved HBASE-961.
-------------------------

       Resolution: Fixed
    Fix Version/s: 0.19.0

Committed.  Thanks for the patch Samuel.

> Delete multiple columns by regular expression
> ---------------------------------------------
>
>                 Key: HBASE-961
>                 URL: https://issues.apache.org/jira/browse/HBASE-961
>             Project: Hadoop HBase
>          Issue Type: New Feature
>          Components: client
>         Environment: HBase 0.18.0
>            Reporter: Slava
>            Assignee: Samuel Guo
>             Fix For: 0.19.0
>
>         Attachments: HBASE-961.patch, HBASE-961_V01.patch
>
>
> Hi.
> I tried to find a way to delete multiple columns that their names match some regular expression, but this functionality is missing (i think).
> Is it possible to add such functionality ?

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