You are viewing a plain text version of this content. The canonical link for it is here.
Posted to notifications@accumulo.apache.org by "Vikram Srivastava (JIRA)" <ji...@apache.org> on 2014/01/20 08:47:20 UTC

[jira] [Commented] (ACCUMULO-1661) AccumuloInputFormat cannot fetch empty column family

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

Vikram Srivastava commented on ACCUMULO-1661:
---------------------------------------------

Newbie question: Do "cols" and "setCols" have to be identical? Javadoc for fetchColumns says "An empty set is the default and is equivalent to scanning the all columns." So can we put a condition that if ColumnFamily == new Text(""), it implies that all CFs are selected? Also, in that case we should add an argument checker that "cols" has a size of 1 only.

> AccumuloInputFormat cannot fetch empty column family
> ----------------------------------------------------
>
>                 Key: ACCUMULO-1661
>                 URL: https://issues.apache.org/jira/browse/ACCUMULO-1661
>             Project: Accumulo
>          Issue Type: Bug
>          Components: client
>    Affects Versions: 1.4.3, 1.5.0
>            Reporter: Billie Rinaldi
>             Fix For: 1.5.1, 1.6.0
>
>
> The following fails:
> {code:java}
> Job job = new Job();
> HashSet<Pair<Text,Text>> cols = new HashSet<Pair<Text,Text>>();
> cols.add(new Pair<Text,Text>(new Text(""), null));
> AccumuloInputFormat.fetchColumns(job, cols);
> Set<Pair<Text,Text>> setCols = AccumuloInputFormat.getFetchedColumns(job);
> assertEquals(cols.size(), setCols.size());
> {code}



--
This message was sent by Atlassian JIRA
(v6.1.5#6160)