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-29275][SQL][DOC] Describe special date/timestamp values in the SQL migration guide #25948

Closed
wants to merge 2 commits into from

Conversation

MaxGekk
Copy link
Member

@MaxGekk MaxGekk commented Sep 27, 2019

What changes were proposed in this pull request?

Updated the SQL migration guide regarding to recently supported special date and timestamp values, see #25716 and #25708.

Closes #25834

Why are the changes needed?

To let users know about new feature in Spark 3.0.

Does this PR introduce any user-facing change?

No

@MaxGekk
Copy link
Member Author

MaxGekk commented Sep 27, 2019

@cloud-fan @srowen Please, take a look at this.

@SparkQA
Copy link

SparkQA commented Sep 27, 2019

Test build #111481 has finished for PR 25948 at commit 5d8e57b.

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

- `now` - the date of running the current query. It has the same notion as today.
For example `SELECT date 'tomorrow' - date 'yesterday';` should output `2`. Here are special timestamp values:
- `epoch [zoneId]` - 1970-01-01 00:00:00+00 (Unix system time zero)
- `today [zoneId]` - midnight today.
Copy link
Member

Choose a reason for hiding this comment

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

Shall we remove the . at the end? For line 206 and 209, it might be natural. This line might be better be consistent with the following lines (213/214).

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 removed all dots because some items don't form complete sentences, and others must not as well for consistency .

Copy link
Member

@dongjoon-hyun dongjoon-hyun left a comment

Choose a reason for hiding this comment

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

+1, LGTM except the minor comment on .. It looks inconsistent.

@SparkQA
Copy link

SparkQA commented Sep 27, 2019

Test build #111491 has finished for PR 25948 at commit c2c6d0c.

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

@dongjoon-hyun
Copy link
Member

Merged to master. Thank you, @MaxGekk and @srowen !

@MaxGekk MaxGekk deleted the special-values-migration-guide branch October 5, 2019 19:18
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Projects
None yet
4 participants