accumulo-notifications mailing list archives

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

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

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:

{code}
BatchScanner bs = getConnector().createBatchScanner(getTableName(), new Authorizations(),
2);
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"))));
bs.addScanIterator(combiner);
{code}

Adding in the following will cause it to work:

{code}
bs.fetchColumnFamily(new Text("count"));
{code}

> SummingCombiner does not adhere to Combiner#COLUMNS_OPTION
> ----------------------------------------------------------
>
>                 Key: ACCUMULO-2539
>                 URL: https://issues.apache.org/jira/browse/ACCUMULO-2539
>             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
(v6.2#6252)

Mime
View raw message