Github user YannByron commented on the issue:
https://github.com/apache/spark/pull/16138
@anabranch
I met a failure case when using `to_date`, like this:
```
spark-sql> select func(to_date('2017-08-25 12:00:00'));
```
`func` is a custom udf
Github user YannByron commented on the issue:
https://github.com/apache/spark/pull/18270
I realize the reason that leads to UTs failure is that the query result has
a fixed order even though a sql statement doesn't include `order by`, such as
the output of query 16 in `