Github user yhuai commented on the pull request:

    https://github.com/apache/spark/pull/9685#issuecomment-158219111
  
    Seems Hive is still wrong when the data type is int. See
    ```
    hive> SELECT CAST(CAST(-1200 AS TIMESTAMP) AS INT);
    OK
    -2
    Time taken: 0.047 seconds, Fetched: 1 row(s)
    hive> SELECT CAST(CAST(-1200.0 AS TIMESTAMP) AS INT);
    OK
    -1200
    Time taken: 0.046 seconds, Fetched: 1 row(s)
    ```
    Let's delete those golden files and create our own test (using `test(...) 
{...}` instead of using `createQueryTest(..., ...)`).


---
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