Skip to content

Conversation

@srowen
Copy link
Member

@srowen srowen commented Sep 19, 2017

What changes were proposed in this pull request?

Clarify behavior of to_utc_timestamp/from_utc_timestamp with an example

How was this patch tested?

Doc only change / existing tests

@srowen
Copy link
Member Author

srowen commented Sep 19, 2017

CC @HyukjinKwon as I think we talked about this a long time ago

@SparkQA
Copy link

SparkQA commented Sep 19, 2017

Test build #81918 has finished for PR 19276 at commit 3ff334a.

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

@SparkQA
Copy link

SparkQA commented Sep 19, 2017

Test build #81919 has finished for PR 19276 at commit fc10be8.

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

#' @details
#' \code{from_utc_timestamp}: Given a timestamp, which corresponds to a certain time of day in UTC,
#' returns another timestamp that corresponds to the same time of day in the given timezone.
#' \code{from_utc_timestamp}: Given a timestamp like '2017-07-14 02:40:00.0', interprets it as a time in UTC, and
Copy link
Member

Choose a reason for hiding this comment

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

I think lintr does not recognise this case but I believe these lines should fit in 100 character lengths ..

@HyukjinKwon
Copy link
Member

LGTM

@SparkQA
Copy link

SparkQA commented Sep 19, 2017

Test build #81920 has finished for PR 19276 at commit 87874b6.

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

#' \code{from_utc_timestamp}: Given a timestamp, which corresponds to a certain time of day in UTC,
#' returns another timestamp that corresponds to the same time of day in the given timezone.
#' \code{from_utc_timestamp}: Given a timestamp like '2017-07-14 02:40:00.0', interprets it as a time in UTC, and
# renders that time as a timestamp in the given time zone. For example, 'GMT+1' would yield '2017-07-14 03:40:00.0'.
Copy link
Member

Choose a reason for hiding this comment

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

Oh, and missing #' at the beginning.

#' \code{to_utc_timestamp}: Given a timestamp, which corresponds to a certain time of day
#' in the given timezone, returns another timestamp that corresponds to the same time of day in UTC.
#' \code{to_utc_timestamp}: Given a timestamp like '2017-07-14 02:40:00.0', interprets it as a time in the given
# time zone, and renders that time as a timestamp in UTC. For example, 'GMT+1' would yield '2017-07-14 01:40:00.0'.
Copy link
Member

Choose a reason for hiding this comment

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

same here with # -> #'

@SparkQA
Copy link

SparkQA commented Sep 20, 2017

Test build #81983 has finished for PR 19276 at commit d81acdc.

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

@HyukjinKwon
Copy link
Member

Merged to master.

@asfgit asfgit closed this in e17901d Sep 20, 2017
@srowen srowen deleted the SPARK-22049 branch September 21, 2017 11:16
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