Skip to content

hasNumberOfDistinctValues and hasHistogramValues require arguments that should be optional? #81

Description

@thvasilo

Describe the bug
The docs and Scala code for hasNumberOfDistinctValues and hasHistogramValues indicate that providing the binningUdf, maxBins parameters should be optional, but from the function definitions they seem to be required.

To Reproduce
Steps to reproduce the behavior:

  1. Try to define a check with check.hasNumberOfDistinctValues('column_name', lambda x: x == 6)
  2. See error: TypeError: hasNumberOfDistinctValues() missing 2 required positional arguments: 'binningUdf' and 'maxBins'

Expected behavior
I'd like to be able to call the hasNumberOfDistinctValues and hasHistogramValues without specifying a binning function and maxBins.

Metadata

Metadata

Assignees

No one assigned

    Labels

    bugSomething isn't working

    Type

    No type

    Fields

    No fields configured for issues without a type.

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions