Skip to content

Imprecise facet statistics in records mode #2588

@wetneb

Description

@wetneb

Describe the bug

The blank values in a column are counted incorrectly in records mode.

To Reproduce
Import the following CSV dataset:

a,b,c
1,2,3
,,4
,,5
,6,7
3,4,8
,2,9

Create a text facet on the second column, in records mode.
Observe that it counts a single blank value, whereas there are two of them.

Current Results
The count for (blank) is 1.

Expected behavior
The count for (blank) should be 2.

OpenRefine (please complete the following information):

  • master branch (but applicable to all versions since at least 2.6 probably)

Metadata

Metadata

Assignees

No one assigned

    Labels

    Type: BugIssues related to software defects or unexpected behavior, which require resolution.records

    Type

    No type

    Projects

    No projects

    Milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions