-
Notifications
You must be signed in to change notification settings - Fork 29k
[SPARK-21914][SQL][TESTS] Check results of expression examples #25942
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
Closed
Closed
Changes from 17 commits
Commits
Show all changes
24 commits
Select commit
Hold shift + click to select a range
5a80e69
Add the test for checking output of expression examples
MaxGekk 1f52b75
Fix expected results
MaxGekk d90a6ae
Fix JsonTuple
MaxGekk b0d2d4b
Fix ToUnixTimestamp
MaxGekk 8abbd86
Fix Round
MaxGekk 3dbb9cf
Fix Skewness
MaxGekk 9834f04
Fix StringToMap
MaxGekk c60bf69
Fix ArrayForAll
MaxGekk 201863c
Fix StringTrimLeft
MaxGekk 6c158d8
Fix MakeTimestamp
MaxGekk 3dd25a7
Fix Kurtosis
MaxGekk 1216b02
Fix BRound
MaxGekk 4be0acd
Disable Scala style checker for JsonTuple
MaxGekk 4740c8d
Update the ignore list
MaxGekk 3bc35f6
Support multiline examples
MaxGekk 6e68f43
Fix examples
MaxGekk 3f1e42c
Put common code to unindentAndTrim()
MaxGekk c30195e
Check syntax of examples
MaxGekk 33665b7
Fix MOD, make_timestamp and LIKE
MaxGekk 2ca354e
Fix RLIKE
MaxGekk 4a328bb
Disable scalastyle checker for tabs in RLIKE
MaxGekk dcd9816
Fix another test which checks presence of _FUNC_
MaxGekk 41e4d7c
Run the test in parallel
MaxGekk cee6709
Remove logTrace
MaxGekk File filter
Filter by extension
Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
There are no files selected for viewing
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Oops, something went wrong.
Add this suggestion to a batch that can be applied as a single commit.
This suggestion is invalid because no changes were made to the code.
Suggestions cannot be applied while the pull request is closed.
Suggestions cannot be applied while viewing a subset of changes.
Only one suggestion per line can be applied in a batch.
Add this suggestion to a batch that can be applied as a single commit.
Applying suggestions on deleted lines is not supported.
You must change the existing code in this line in order to create a valid suggestion.
Outdated suggestions cannot be applied.
This suggestion has been applied or marked resolved.
Suggestions cannot be applied from pending reviews.
Suggestions cannot be applied on multi-line comments.
Suggestions cannot be applied while the pull request is queued to merge.
Suggestion cannot be applied right now. Please check back later.
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.
Oh, surprising.
Uh oh!
There was an error while loading. Please reload this page.
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.
The
yyyy-MM-dd HH:mm:sspattern does not contain the time zone sub-pattern. If you point out it, you will see something like: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.
And you can change your current time zone to
UTCto see1970-01-01 00:00:00: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.
Ya. The timezone issue will make a failure on different timezone machines.
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.
but the time zone is forcibly set to
"America/Los_Angeles"in tests:spark/sql/core/src/test/scala/org/apache/spark/sql/QueryTest.scala
Line 36 in 97dc4c0
spark/sql/catalyst/src/main/scala/org/apache/spark/sql/internal/SQLConf.scala
Line 1384 in a1213d5