Github user wzhfy commented on the issue:

    https://github.com/apache/spark/pull/16395
  
    ok after more testing, estimation for timestamp/date comparison is still 
useful.
    e.g. users can write cast to date explicitly:
    ```
    where d_date > date('2000-08-23'), or
    where d_date > cast('2000-08-23' AS DATE)
    ```
    then the condition becomes `d_date#132 > 11192`, the string is evaluated to 
an Int after optimization.
    So I think it's better to simulate this case in the test suite, instead of 
assuming the literal is a String.


---
If your project is set up for it, you can reply to this email and have your
reply appear on GitHub as well. If your project does not have this feature
enabled and wishes so, or if the feature is enabled but not working, please
contact infrastructure at [email protected] or file a JIRA ticket
with INFRA.
---

---------------------------------------------------------------------
To unsubscribe, e-mail: [email protected]
For additional commands, e-mail: [email protected]

Reply via email to