-
Notifications
You must be signed in to change notification settings - Fork 29k
[SPARK-11724] [SQL] Change casting between int and timestamp to consistently treat int in seconds. #9685
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Conversation
|
Good catch! The currently behaviour looks wierd to me, how does hive handle this? cc @yhuai |
|
Test build #45842 has finished for PR 9685 at commit
|
It looks like Hive fixed this in 1.2. https://issues.apache.org/jira/browse/HIVE-3454 |
|
Seems we need to update those golden files. I believe we can set |
…stently treat int in seconds. The current behavior is odd but there were a few tests that verified it. Not sure if there is a particular reason it is this way.
|
Seems Hive is still wrong when the data type is int. See Let's delete those golden files and create our own test (using |
|
Test build #46364 has finished for PR 9685 at commit
|
|
test this please |
|
Test build #46391 has finished for PR 9685 at commit
|
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Seems we do not include the new golden file? I can generate it tomorrow.
Update golden files.
|
Test build #46435 has finished for PR 9685 at commit
|
|
LGTM. Thank you for the fix! Merging it to master and branch 1.6. |
…tently treat int in seconds. Hive has since changed this behavior as well. https://issues.apache.org/jira/browse/HIVE-3454 Author: Nong Li <nong@databricks.com> Author: Nong Li <nongli@gmail.com> Author: Yin Huai <yhuai@databricks.com> Closes #9685 from nongli/spark-11724. (cherry picked from commit 9ed4ad4) Signed-off-by: Yin Huai <yhuai@databricks.com>
Hive has since changed this behavior as well. https://issues.apache.org/jira/browse/HIVE-3454