Skip to content

Should we introduce property testing? #5512

Closed as duplicate
Closed as duplicate

Description

@HaoYang670

Is your feature request related to a problem or challenge? Please describe what you are trying to do.
This is actually not a feature, but a question or discussion.

Property testing is a useful tool for us to focus on the properties of objects, without caring about how testing data is generated.
It is tasted like the formal verification.

I am not sure whether we should consider adding it into the Datafusion. My first thought is that it can be applied to Scalar, DataType, Expression but may be not suitable for Plan. In another word, it is more suitable for unit test, maybe.

There is no offical crate for property testing, unfortunately. I find some personal repos, such as:
https://github.com/BurntSushi/quickcheck
https://github.com/proptest-rs/proptest

Actually, this is just a quick mind in my brain. I haven't found a practical way to implement it. But I'd like to hear your opinions.

Describe the solution you'd like

Describe alternatives you've considered

Additional context

Activity

  1. Jefffrey commented on May 29, 2025

    @Jefffrey
    Contributor

    Although this issue is older, I'll close it as duplicate in favour of #12569 as the newer one adds some extra details (like linking to an example PR where proptesting could be beneficial) 🙂

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

No one assigned

    Labels

    help wantedExtra attention is neededquestionFurther information is requested

    Type

    No type

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions