-
Notifications
You must be signed in to change notification settings - Fork 28.5k
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-19817][SQL] Make it clear that timeZone
option is a general option in DataFrameReader/Writer.
#17281
Conversation
Test build #74460 has finished for PR 17281 at commit
|
Test build #74461 has finished for PR 17281 at commit
|
Test build #74463 has finished for PR 17281 at commit
|
/** | ||
* General option(s) for the DataFrameReader and DataFrameWriter. | ||
*/ | ||
object DataFrameReaderWriterOptions { |
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.
Let's remove this and always use DateTimeUtils.TIMEZONE_OPTION
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.
I see, I'll remove this.
LGTM |
@@ -60,6 +60,8 @@ object DateTimeUtils { | |||
final val TimeZoneGMT = TimeZone.getTimeZone("GMT") | |||
final val MonthOf31Days = Set(1, 3, 5, 7, 8, 10, 12) | |||
|
|||
val TIMEZONE_OPTION = "timeZone" |
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.
If we do it for timeZone
, I think we should also move dateFormat
and timestampFormat
?
Test build #74547 has finished for PR 17281 at commit
|
Thanks! Merging to master. |
What changes were proposed in this pull request?
As timezone setting can also affect partition values, it works for all formats, we should make it clear.
How was this patch tested?
Existing tests.