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

John Vines commented on ACCUMULO-1661:
--------------------------------------

The issue is in Configuration.getStringCollection. That utilizes a tokenizer to 
split on commas. Unfortunately, when there's an empty COLF, that gets base 64ed 
to an empty string, which causes the tokenizer to interpret it not as a value 
but as cruft. Configuration.getStrings has the same behavior, so the only way 
around it is to not rely on the Configuration helpers, do the String 
transformations ourselves. Or, we can go a slightly hacky route and just 
manually check if that property is an empty String (vs. null) to know it's 
there. However, cases where the empty string is among other options would still 
probably get lost.

> 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
>            Assignee: John Vines
>             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#6144)

Reply via email to