You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
{{ message }}
Repository navigation
Property based testing to detect more (subtle and edge cases) bugs #12569
Is your feature request related to a problem or challenge?
Property based testing is a testing technique that can be used to ensure a certain property holds for a certain set of input. For example the associative property of addition:
$$
\forall a, b, c \in \mathbb{R} :\quad (a + b) + c = a + (b + c)
$$
It might be interesting to use it for Apache Datafusion as well? I think bugs such as #12190 can be detected easier when this kind of tests are present. It might help improve the stability of Datafusion in the long run.
In the context of Datafusion, on top of my head, I think it might be useful to use this technique to test arithmetic properties between scalar values, time values, etc. There are likely more advanced use cases for property based testing in Datafusion wrt logical or physical plans.
Activity