Skip to content

Conversation

@gengliangwang
Copy link
Member

@gengliangwang gengliangwang commented Jun 8, 2021

What changes were proposed in this pull request?

Refactor LocalDateTimeUDT as YearUDT in UserDefinedTypeSuite

Why are the changes needed?

As we are going to support java.time.LocalDateTime as an external type of TimestampWithoutTZ type #32814, registering java.time.LocalDateTime as UDT will cause test failures: https://amplab.cs.berkeley.edu/jenkins/job/SparkPullRequestBuilder/139469/testReport/
This PR is to unblock #32814.

Does this PR introduce any user-facing change?

No.

How was this patch tested?

Unit test.

}

UDTRegistration.register(classOf[LocalDateTime].getName, classOf[LocalDateTimeUDT].getName)
UDTRegistration.register(classOf[Year].getName, classOf[YearUDT].getName)
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

shall we unregister it after test finishes?

Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

oh there is no such API yet...

@github-actions github-actions bot added the SQL label Jun 8, 2021
@SparkQA
Copy link

SparkQA commented Jun 8, 2021

Kubernetes integration test unable to build dist.

exiting with code: 1
URL: https://amplab.cs.berkeley.edu/jenkins/job/SparkPullRequestBuilder-K8s/44023/

@SparkQA
Copy link

SparkQA commented Jun 8, 2021

Test build #139500 has finished for PR 32824 at commit 7e2c102.

  • This patch passes all tests.
  • This patch merges cleanly.
  • This patch adds no public classes.

@gengliangwang
Copy link
Member Author

Merging to master

@dongjoon-hyun
Copy link
Member

dongjoon-hyun commented Jun 9, 2021

Hi, @gengliangwang .
SPARK-30993 was released long time ago by 2.4.6 and 3.0.0.
If you don't mind, could you use a new JIRA instead of the follow-up next time?

I'm not aware of the community rule for this. However, usually, I use a follow-up style when they will have the same release version which means the original patch is not released yet.

@gengliangwang
Copy link
Member Author

@dongjoon-hyun Yes, I think creating a new Jira makes more sense. Thanks for the suggestion!

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

Projects

None yet

Development

Successfully merging this pull request may close these issues.

4 participants