accumulo-notifications mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From "Josh Elser (JIRA)" <>
Subject [jira] [Commented] (ACCUMULO-2539) SummingCombiner does not adhere to Combiner#COLUMNS_OPTION
Date Mon, 24 Mar 2014 17:32:45 GMT


Josh Elser commented on ACCUMULO-2539:

Actually, looking at things, I'm not entirely sure where the bug is but something isn't quite
right. The following does not work:

BatchScanner bs = getConnector().createBatchScanner(getTableName(), new Authorizations(),
bs.setRanges(Collections.singleton(new Range()));
IteratorSetting combiner = new IteratorSetting(50, "combiner", SummingCombiner.class);
LongCombiner.setEncodingType(combiner, LongCombiner.Type.VARLEN);
LongCombiner.setColumns(combiner, Collections.singletonList(new Column(new Text("count"))));

Adding in the following will cause it to work:

bs.fetchColumnFamily(new Text("count"));

> SummingCombiner does not adhere to Combiner#COLUMNS_OPTION
> ----------------------------------------------------------
>                 Key: ACCUMULO-2539
>                 URL:
>             Project: Accumulo
>          Issue Type: Bug
>          Components: client
>    Affects Versions: 1.4.4, 1.5.1
>            Reporter: Josh Elser
>            Assignee: Josh Elser
>             Fix For: 1.4.5, 1.5.2, 1.6.1
> In testing out the SummingCombiner, I set the Combiner#COLUMNS_OPTION which led me to
believe that the SummingCombiner would limit columns to the set that is provided as an option
through the IteratorSetting.
> In practice, this was not the case as Combiner#findTop isn't used, and thus that column
list is not adhered to. I can get the expected functionality out of SummingCombiner by calling
{{ScannerBase#fetchColumn}} or {{ScannerBase#fetchColumnFamily}}.

This message was sent by Atlassian JIRA

View raw message