-
Notifications
You must be signed in to change notification settings - Fork 29k
[SPARK-45300][SQL][TESTS] Remove JDK 8 workaround in TimestampFormatterSuite #43085
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
|
cc @yaooqinn |
yaooqinn
left a comment
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.
LGTM
c79c0e6 to
d156b34
Compare
| val micros2 = formatter.parse("2009-12-12 12 am") | ||
| assert(micros2 === date(2009, 12, 12, 12)) | ||
| } | ||
| intercept[DateTimeException](formatter.parse("2009-12-12 12 am")) |
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.
LuciferYang
left a comment
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.
LGTM
dongjoon-hyun
left a comment
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.
Could you fix the compilation issue (due to the unused import), @HyukjinKwon ?
[error] /Users/dongjoon/APACHE/spark-merge/sql/catalyst/src/test/scala/org/apache/spark/sql/catalyst/util/TimestampFormatterSuite.scala:22:34: Unused import
[error] import org.apache.commons.lang3.{JavaVersion, SystemUtils}
[error] ^
[error] /Users/dongjoon/APACHE/spark-merge/sql/catalyst/src/test/scala/org/apache/spark/sql/catalyst/util/TimestampFormatterSuite.scala:22:47: Unused import
[error] import org.apache.commons.lang3.{JavaVersion, SystemUtils}
[error] ^
dongjoon-hyun
left a comment
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.
+1, LGTM.
|
I manually verified this. Merged to master. |
What changes were proposed in this pull request?
This PR removes the legacy workaround for JDK 8 in #28736.
Why are the changes needed?
Does this PR introduce any user-facing change?
No.
How was this patch tested?
Fixed unittests.
Was this patch authored or co-authored using generative AI tooling?
No.