accumulo-notifications mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From "John Vines (JIRA)" <>
Subject [jira] [Commented] (ACCUMULO-1661) AccumuloInputFormat cannot fetch empty column family
Date Wed, 30 Oct 2013 22:17:27 GMT


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:
>             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

View raw message