Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Remove precondition in WindowOperatorStats
The existing precondition is that the DriverWindowInfo list can't be empty. This precondition fails from time to time, terminating the whole EXPLAIN ANALYSE VERBOSE query, which seems to be too eager. The outcome in such scenario is that all the standard deviations calculated by WindowOperatorStats equals to NaN, which is still better than not showing the results at all. This behaviour can be recreated when executing query like: SELECT * FROM ( SELECT custkey, max(orderdate) OVER (partition by custkey) FROM tpch.tiny.orders UNION ALL ( SELECT custkey, max(orderdate) OVER (partition by custkey) FROM tpch.tiny.orders UNION ALL SELECT custkey, max(orderdate) OVER (partition by custkey) FROM tpch.tiny.orders UNION ALL ... ) ) LIMIT 1 Unfortunately even for such artificial query the execution is successful most of the time. List of changes: - removing Precondition from WindowOperatorStats - documenting the expected behaviour for situation when Stats are created for no DriverWindowInfo in a test
- Loading branch information