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

Tim Sell reopened HBASE-889:
----------------------------


I was wrong, this wasn't fixed by HBASE-1142 after all. I didn't test it 
properly. Sorry.
You could pass it an empty list, but the scanner would just select zero columns.

Attached is a patch that addresses this, it includes a getAllColumns function 
which looks them up from the table descriptor.

I'm not convinced this is how it should be done though, because the shell has 
similar code. Presumably so does the REST api. Maybe the HTable.getScanner 
functions should do this themselves if passed null or an empty list for columns?

> The current Thrift API does not allow a new scanner to be created without 
> supplying a column list unlike the other APIs.
> ------------------------------------------------------------------------------------------------------------------------
>
>                 Key: HBASE-889
>                 URL: https://issues.apache.org/jira/browse/HBASE-889
>             Project: Hadoop HBase
>          Issue Type: Bug
>          Components: thrift
>    Affects Versions: 0.2.0, 0.2.1
>            Reporter: Charlie Mason
>            Assignee: Tim Sell
>             Fix For: 0.20.0
>
>         Attachments: HBASE-889v1.patch
>
>
> The current Thrift API does not allow a new scanner to be created without 
> supplying a column list, unlike the REST api. I posted this on the 
> HBase-Users mailing list. Others concurred that it appears to have been an 
> oversight in the Thrift API. 
> Its quite significant as there is no easy work around, unless you already 
> know which the column families names then list them all when you open the 
> scanner.

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

Reply via email to