Skip to content

Conversation

@davies
Copy link
Contributor

@davies davies commented Nov 13, 2015

Support the years between 0 <= year < 1000

@SparkQA
Copy link

SparkQA commented Nov 13, 2015

Test build #45886 has finished for PR 9701 at commit fd34d86.

  • This patch fails Spark unit tests.
  • This patch merges cleanly.
  • This patch adds no public classes.

@SparkQA
Copy link

SparkQA commented Nov 16, 2015

Test build #2062 has finished for PR 9701 at commit fd34d86.

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

Copy link
Contributor

Choose a reason for hiding this comment

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

if s is not empty, we will never get into this branch right?

To handle empty s, I think a better idea is changing the default value of segments to [-1, -1, -1]

Copy link
Contributor Author

Choose a reason for hiding this comment

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

No, if s is 123, then i = 0, j = 3

@cloud-fan
Copy link
Contributor

LGTM except a minor suggestion

asfgit pushed a commit that referenced this pull request Nov 18, 2015
Support the years between 0 <= year < 1000

Author: Davies Liu <[email protected]>

Closes #9701 from davies/leading_zero.

(cherry picked from commit 2f191c6)
Signed-off-by: Davies Liu <[email protected]>
@asfgit asfgit closed this in 2f191c6 Nov 18, 2015
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.

3 participants