Skip to content
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

[SPARK-3598][SQL]cast to timestamp should be the same as hive #2458

Closed
wants to merge 2 commits into from

Conversation

adrian-wang
Copy link
Contributor

this patch fixes timestamp smaller than 0 and cast int as timestamp

select cast(1000 as timestamp) from src limit 1;

should return 1970-01-01 00:00:01, but we now take it as 1000 seconds.
also, current implementation has bug when the time is before 1970-01-01 00:00:00.
@rxin @marmbrus @chenghao-intel

@SparkQA
Copy link

SparkQA commented Sep 19, 2014

QA tests have started for PR 2458 at commit 4274b1d.

  • This patch merges cleanly.

@SparkQA
Copy link

SparkQA commented Sep 19, 2014

QA tests have finished for PR 2458 at commit 4274b1d.

  • This patch passes unit tests.
  • This patch merges cleanly.
  • This patch adds the following public classes (experimental):
    • sealed trait Matrix extends Serializable
    • class SparseMatrix(
    • sealed trait Vector extends Serializable

@marmbrus
Copy link
Contributor

Thanks! Merged to master.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
3 participants