[ 
https://issues.apache.org/jira/browse/HBASE-6592?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=13450389#comment-13450389
 ] 

stack commented on HBASE-6592:
------------------------------

I applied the patch (it looks good).  I'm trying to figure how it works.

{code}

hbase(main):011:0> get 'x', 'y'
COLUMN                                                                          
             CELL                                                               
                                                                                
                                                                                
                                            
 x:y                                                                            
             timestamp=1346997605572, value=1                                   
                                                                                
                                                                                
                                            
1 row(s) in 0.0430 seconds

hbase(main):012:0> get 'x', 'y', {COLUMNS => [x:toInt]}
NoMethodError: undefined method `x' for #<Object:0x73d742a1>

hbase(main):013:0> get 'x', 'y', {COLUMNS => ['x:toInt']}
COLUMN                                                                          
             CELL                                                               
                                                                                
                                                                                
                                            
0 row(s) in 0.0120 seconds

hbase(main):014:0> get 'x', 'y'
COLUMN                                                                          
             CELL                                                               
                                                                                
                                                                                
                                            
 x:y                                                                            
             timestamp=1346997605572, value=1                                   
                                                                                
                                                                                
                                            
1 row(s) in 0.0080 seconds

{code}

Look at above.  What am I doing wrong?  I have cf of x and I'm doing x:toInt on 
it when i specify columns?

Thanks Jie.
                
> [shell] Add means of custom formatting output by column
> -------------------------------------------------------
>
>                 Key: HBASE-6592
>                 URL: https://issues.apache.org/jira/browse/HBASE-6592
>             Project: HBase
>          Issue Type: New Feature
>          Components: shell
>            Reporter: stack
>            Priority: Minor
>              Labels: noob
>         Attachments: hbase-6592.patch, hbase-6952-v1.patch
>
>
> See Jacques suggestion toward end of this thread for how we should allow 
> adding a custom formatter per column to use outputting column content in 
> shell: 
> http://search-hadoop.com/m/2WxUB1fuxL11/Printing+integers+in+the+Hbase+shell&subj=Printing+integers+in+the+Hbase+shell

--
This message is automatically generated by JIRA.
If you think it was sent incorrectly, please contact your JIRA administrators
For more information on JIRA, see: http://www.atlassian.com/software/jira

Reply via email to