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-19817][SQL] Make it clear that timeZone option is a general option in DataFrameReader/Writer. #17281

Closed
wants to merge 6 commits into from

Conversation

ueshin
Copy link
Member

@ueshin ueshin commented Mar 13, 2017

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.

@SparkQA
Copy link

SparkQA commented Mar 13, 2017

Test build #74460 has finished for PR 17281 at commit e92ce45.

  • This patch fails Python style tests.
  • This patch merges cleanly.
  • This patch adds no public classes.

@SparkQA
Copy link

SparkQA commented Mar 13, 2017

Test build #74461 has finished for PR 17281 at commit ad8a64a.

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

@SparkQA
Copy link

SparkQA commented Mar 13, 2017

Test build #74463 has finished for PR 17281 at commit 2c7e29f.

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

/**
* General option(s) for the DataFrameReader and DataFrameWriter.
*/
object DataFrameReaderWriterOptions {
Copy link
Contributor

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

Copy link
Member Author

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.

@cloud-fan
Copy link
Contributor

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"
Copy link
Member

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?

@SparkQA
Copy link

SparkQA commented Mar 14, 2017

Test build #74547 has finished for PR 17281 at commit 57218fa.

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

@gatorsmile
Copy link
Member

Thanks! Merging 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
Development

Successfully merging this pull request may close these issues.

4 participants