You are viewing a plain text version of this content. The canonical link for it is here.
Posted to reviews@spark.apache.org by GitBox <gi...@apache.org> on 2020/03/12 09:32:27 UTC

[GitHub] [spark] yaooqinn opened a new pull request #27889: [SPARK-31131][SQL] Remove the unnecessary config spark.sql.legacy.timeParser.enabled

yaooqinn opened a new pull request #27889: [SPARK-31131][SQL] Remove the unnecessary config spark.sql.legacy.timeParser.enabled
URL: https://github.com/apache/spark/pull/27889
 
 
   
   <!--
   Thanks for sending a pull request!  Here are some tips for you:
     1. If this is your first time, please read our contributor guidelines: https://spark.apache.org/contributing.html
     2. Ensure you have added or run the appropriate tests for your PR: https://spark.apache.org/developer-tools.html
     3. If the PR is unfinished, add '[WIP]' in your PR title, e.g., '[WIP][SPARK-XXXX] Your PR title ...'.
     4. Be sure to keep the PR description updated to reflect all changes.
     5. Please write your PR title to summarize what this PR proposes.
     6. If possible, provide a concise example to reproduce the issue for a faster review.
     7. If you want to add a new configuration, please read the guideline first for naming configurations in
        'core/src/main/scala/org/apache/spark/internal/config/ConfigEntry.scala'.
   -->
   
   ### What changes were proposed in this pull request?
   <!--
   Please clarify what changes you are proposing. The purpose of this section is to outline the changes and how this PR fixes the issue. 
   If possible, please consider writing useful notes for better and faster reviews in your PR. See the examples below.
     1. If you refactor some codes with changing classes, showing the class hierarchy will help reviewers.
     2. If you fix some SQL features, you can provide some references of other DBMSes.
     3. If there is design documentation, please add the link.
     4. If there is a discussion in the mailing list, please add the link.
   -->
   spark.sql.legacy.timeParser.enabled should be removed from SQLConf and the migration guide
   spark.sql.legacy.timeParsePolicy is the right one
   
   ### Why are the changes needed?
   <!--
   Please clarify why the changes are needed. For instance,
     1. If you propose a new API, clarify the use case for a new API.
     2. If you fix a bug, you can clarify why it is a bug.
   -->
   
   fix doc
   
   ### Does this PR introduce any user-facing change?
   <!--
   If yes, please clarify the previous behavior and the change this PR proposes - provide the console output, description and/or an example to show the behavior difference if possible.
   If no, write 'No'.
   -->
   
   no
   ### How was this patch tested?
   <!--
   If tests were added, say they were added here. Please make sure to add some test cases that check the changes thoroughly including negative and positive cases if possible.
   If it was tested in a way different from regular unit tests, please clarify how you tested step by step, ideally copy and paste-able, so that other reviewers can test and check, and descendants can verify in the future.
   If tests were not added, please describe why they were not added and/or why it was difficult to add.
   -->
   Nah

----------------------------------------------------------------
This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.
 
For queries about this service, please contact Infrastructure at:
users@infra.apache.org


With regards,
Apache Git Services

---------------------------------------------------------------------
To unsubscribe, e-mail: reviews-unsubscribe@spark.apache.org
For additional commands, e-mail: reviews-help@spark.apache.org


[GitHub] [spark] AmplabJenkins commented on issue #27889: [SPARK-31131][SQL] Remove the unnecessary config spark.sql.legacy.timeParser.enabled

Posted by GitBox <gi...@apache.org>.
AmplabJenkins commented on issue #27889: [SPARK-31131][SQL] Remove the unnecessary config spark.sql.legacy.timeParser.enabled
URL: https://github.com/apache/spark/pull/27889#issuecomment-598241925
 
 
   Merged build finished. Test PASSed.

----------------------------------------------------------------
This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.
 
For queries about this service, please contact Infrastructure at:
users@infra.apache.org


With regards,
Apache Git Services

---------------------------------------------------------------------
To unsubscribe, e-mail: reviews-unsubscribe@spark.apache.org
For additional commands, e-mail: reviews-help@spark.apache.org


[GitHub] [spark] dongjoon-hyun edited a comment on issue #27889: [SPARK-31131][SQL] Remove the unnecessary config spark.sql.legacy.timeParser.enabled

Posted by GitBox <gi...@apache.org>.
dongjoon-hyun edited a comment on issue #27889: [SPARK-31131][SQL] Remove the unnecessary config spark.sql.legacy.timeParser.enabled
URL: https://github.com/apache/spark/pull/27889#issuecomment-598280941
 
 
   Thank you all. Merged to master.

----------------------------------------------------------------
This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.
 
For queries about this service, please contact Infrastructure at:
users@infra.apache.org


With regards,
Apache Git Services

---------------------------------------------------------------------
To unsubscribe, e-mail: reviews-unsubscribe@spark.apache.org
For additional commands, e-mail: reviews-help@spark.apache.org


[GitHub] [spark] cloud-fan commented on a change in pull request #27889: [SPARK-31131][SQL] Remove the unnecessary config spark.sql.legacy.timeParser.enabled

Posted by GitBox <gi...@apache.org>.
cloud-fan commented on a change in pull request #27889: [SPARK-31131][SQL] Remove the unnecessary config spark.sql.legacy.timeParser.enabled
URL: https://github.com/apache/spark/pull/27889#discussion_r391512138
 
 

 ##########
 File path: docs/sql-migration-guide.md
 ##########
 @@ -70,7 +70,7 @@ license: |
 
   - Since Spark 3.0, Proleptic Gregorian calendar is used in parsing, formatting, and converting dates and timestamps as well as in extracting sub-components like years, days and etc. Spark 3.0 uses Java 8 API classes from the java.time packages that based on ISO chronology (https://docs.oracle.com/javase/8/docs/api/java/time/chrono/IsoChronology.html). In Spark version 2.4 and earlier, those operations are performed by using the hybrid calendar (Julian + Gregorian, see https://docs.oracle.com/javase/7/docs/api/java/util/GregorianCalendar.html). The changes impact on the results for dates before October 15, 1582 (Gregorian) and affect on the following Spark 3.0 API:
 
-    - Parsing/formatting of timestamp/date strings. This effects on CSV/JSON datasources and on the `unix_timestamp`, `date_format`, `to_unix_timestamp`, `from_unixtime`, `to_date`, `to_timestamp` functions when patterns specified by users is used for parsing and formatting. Since Spark 3.0, the conversions are based on `java.time.format.DateTimeFormatter`, see https://docs.oracle.com/javase/8/docs/api/java/time/format/DateTimeFormatter.html. New implementation performs strict checking of its input. For example, the `2015-07-22 10:00:00` timestamp cannot be parse if pattern is `yyyy-MM-dd` because the parser does not consume whole input. Another example is the `31/01/2015 00:00` input cannot be parsed by the `dd/MM/yyyy hh:mm` pattern because `hh` supposes hours in the range `1-12`. In Spark version 2.4 and earlier, `java.text.SimpleDateFormat` is used for timestamp/date string conversions, and the supported patterns are described in https://docs.oracle.com/javase/7/docs/api/java/text/SimpleDateFormat.html. The old behavior can be restored by setting `spark.sql.legacy.timeParser.enabled` to `true`.
+    - Parsing/formatting of timestamp/date strings. This effects on CSV/JSON datasources and on the `unix_timestamp`, `date_format`, `to_unix_timestamp`, `from_unixtime`, `to_date`, `to_timestamp` functions when patterns specified by users is used for parsing and formatting. Since Spark 3.0, the conversions are based on `java.time.format.DateTimeFormatter`, see https://docs.oracle.com/javase/8/docs/api/java/time/format/DateTimeFormatter.html. New implementation performs strict checking of its input. For example, the `2015-07-22 10:00:00` timestamp cannot be parse if pattern is `yyyy-MM-dd` because the parser does not consume whole input. Another example is the `31/01/2015 00:00` input cannot be parsed by the `dd/MM/yyyy hh:mm` pattern because `hh` supposes hours in the range `1-12`. In Spark version 2.4 and earlier, `java.text.SimpleDateFormat` is used for timestamp/date string conversions, and the supported patterns are described in https://docs.oracle.com/javase/7/docs/api/java/text/SimpleDateFormat.html. The old behavior can be restored by setting `spark.sql.legacy.timeParserPolicy` to `LEGACY`.
 
 Review comment:
   Since we are here, let's make it more clear:
   ```
   Parsing/formatting of timestamp/date strings. This effects on CSV/JSON datasources and on
   the `unix_timestamp`, `date_format`, `to_unix_timestamp`, `from_unixtime`, `to_date`,
   `to_timestamp` functions when patterns specified by users is used for parsing and formatting.
   Since Spark 3.0, we define our own pattern string in `sql-ref-datetime-pattern.md`, which is
   implemented via `java.time.format.DateTimeFormatter` under the hood. New implementation ...
   ```

----------------------------------------------------------------
This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.
 
For queries about this service, please contact Infrastructure at:
users@infra.apache.org


With regards,
Apache Git Services

---------------------------------------------------------------------
To unsubscribe, e-mail: reviews-unsubscribe@spark.apache.org
For additional commands, e-mail: reviews-help@spark.apache.org


[GitHub] [spark] SparkQA commented on issue #27889: [SPARK-31131][SQL] Remove the unnecessary config spark.sql.legacy.timeParser.enabled

Posted by GitBox <gi...@apache.org>.
SparkQA commented on issue #27889: [SPARK-31131][SQL] Remove the unnecessary config spark.sql.legacy.timeParser.enabled
URL: https://github.com/apache/spark/pull/27889#issuecomment-598220719
 
 
   **[Test build #119712 has finished](https://amplab.cs.berkeley.edu/jenkins/job/SparkPullRequestBuilder/119712/testReport)** for PR 27889 at commit [`1bc237a`](https://github.com/apache/spark/commit/1bc237aad1313dc2fd4dedbc3d4d30474020de7c).
    * This patch passes all tests.
    * This patch merges cleanly.
    * This patch adds no public classes.

----------------------------------------------------------------
This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.
 
For queries about this service, please contact Infrastructure at:
users@infra.apache.org


With regards,
Apache Git Services

---------------------------------------------------------------------
To unsubscribe, e-mail: reviews-unsubscribe@spark.apache.org
For additional commands, e-mail: reviews-help@spark.apache.org


[GitHub] [spark] yaooqinn commented on issue #27889: [SPARK-31131][SQL] Remove the unnecessary config spark.sql.legacy.timeParser.enabled

Posted by GitBox <gi...@apache.org>.
yaooqinn commented on issue #27889: [SPARK-31131][SQL] Remove the unnecessary config spark.sql.legacy.timeParser.enabled
URL: https://github.com/apache/spark/pull/27889#issuecomment-598091040
 
 
   cc @cloud-fan @dongjoon-hyun @maropu thanks

----------------------------------------------------------------
This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.
 
For queries about this service, please contact Infrastructure at:
users@infra.apache.org


With regards,
Apache Git Services

---------------------------------------------------------------------
To unsubscribe, e-mail: reviews-unsubscribe@spark.apache.org
For additional commands, e-mail: reviews-help@spark.apache.org


[GitHub] [spark] SparkQA removed a comment on issue #27889: [SPARK-31131][SQL] Remove the unnecessary config spark.sql.legacy.timeParser.enabled

Posted by GitBox <gi...@apache.org>.
SparkQA removed a comment on issue #27889: [SPARK-31131][SQL] Remove the unnecessary config spark.sql.legacy.timeParser.enabled
URL: https://github.com/apache/spark/pull/27889#issuecomment-598091331
 
 
   **[Test build #119712 has started](https://amplab.cs.berkeley.edu/jenkins/job/SparkPullRequestBuilder/119712/testReport)** for PR 27889 at commit [`1bc237a`](https://github.com/apache/spark/commit/1bc237aad1313dc2fd4dedbc3d4d30474020de7c).

----------------------------------------------------------------
This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.
 
For queries about this service, please contact Infrastructure at:
users@infra.apache.org


With regards,
Apache Git Services

---------------------------------------------------------------------
To unsubscribe, e-mail: reviews-unsubscribe@spark.apache.org
For additional commands, e-mail: reviews-help@spark.apache.org


[GitHub] [spark] SparkQA commented on issue #27889: [SPARK-31131][SQL] Remove the unnecessary config spark.sql.legacy.timeParser.enabled

Posted by GitBox <gi...@apache.org>.
SparkQA commented on issue #27889: [SPARK-31131][SQL] Remove the unnecessary config spark.sql.legacy.timeParser.enabled
URL: https://github.com/apache/spark/pull/27889#issuecomment-598111947
 
 
   **[Test build #119714 has started](https://amplab.cs.berkeley.edu/jenkins/job/SparkPullRequestBuilder/119714/testReport)** for PR 27889 at commit [`0fc7d98`](https://github.com/apache/spark/commit/0fc7d985ead12cf73a198451e292769509fef1f5).

----------------------------------------------------------------
This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.
 
For queries about this service, please contact Infrastructure at:
users@infra.apache.org


With regards,
Apache Git Services

---------------------------------------------------------------------
To unsubscribe, e-mail: reviews-unsubscribe@spark.apache.org
For additional commands, e-mail: reviews-help@spark.apache.org


[GitHub] [spark] AmplabJenkins removed a comment on issue #27889: [SPARK-31131][SQL] Remove the unnecessary config spark.sql.legacy.timeParser.enabled

Posted by GitBox <gi...@apache.org>.
AmplabJenkins removed a comment on issue #27889: [SPARK-31131][SQL] Remove the unnecessary config spark.sql.legacy.timeParser.enabled
URL: https://github.com/apache/spark/pull/27889#issuecomment-598112611
 
 
   Test PASSed.
   Refer to this link for build results (access rights to CI server needed): 
   https://amplab.cs.berkeley.edu/jenkins//job/SparkPullRequestBuilder-K8s/24443/
   Test PASSed.

----------------------------------------------------------------
This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.
 
For queries about this service, please contact Infrastructure at:
users@infra.apache.org


With regards,
Apache Git Services

---------------------------------------------------------------------
To unsubscribe, e-mail: reviews-unsubscribe@spark.apache.org
For additional commands, e-mail: reviews-help@spark.apache.org


[GitHub] [spark] AmplabJenkins commented on issue #27889: [SPARK-31131][SQL] Remove the unnecessary config spark.sql.legacy.timeParser.enabled

Posted by GitBox <gi...@apache.org>.
AmplabJenkins commented on issue #27889: [SPARK-31131][SQL] Remove the unnecessary config spark.sql.legacy.timeParser.enabled
URL: https://github.com/apache/spark/pull/27889#issuecomment-598091753
 
 
   Test PASSed.
   Refer to this link for build results (access rights to CI server needed): 
   https://amplab.cs.berkeley.edu/jenkins//job/SparkPullRequestBuilder-K8s/24441/
   Test PASSed.

----------------------------------------------------------------
This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.
 
For queries about this service, please contact Infrastructure at:
users@infra.apache.org


With regards,
Apache Git Services

---------------------------------------------------------------------
To unsubscribe, e-mail: reviews-unsubscribe@spark.apache.org
For additional commands, e-mail: reviews-help@spark.apache.org


[GitHub] [spark] AmplabJenkins commented on issue #27889: [SPARK-31131][SQL] Remove the unnecessary config spark.sql.legacy.timeParser.enabled

Posted by GitBox <gi...@apache.org>.
AmplabJenkins commented on issue #27889: [SPARK-31131][SQL] Remove the unnecessary config spark.sql.legacy.timeParser.enabled
URL: https://github.com/apache/spark/pull/27889#issuecomment-598221961
 
 
   Test PASSed.
   Refer to this link for build results (access rights to CI server needed): 
   https://amplab.cs.berkeley.edu/jenkins//job/SparkPullRequestBuilder/119712/
   Test PASSed.

----------------------------------------------------------------
This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.
 
For queries about this service, please contact Infrastructure at:
users@infra.apache.org


With regards,
Apache Git Services

---------------------------------------------------------------------
To unsubscribe, e-mail: reviews-unsubscribe@spark.apache.org
For additional commands, e-mail: reviews-help@spark.apache.org


[GitHub] [spark] SparkQA commented on issue #27889: [SPARK-31131][SQL] Remove the unnecessary config spark.sql.legacy.timeParser.enabled

Posted by GitBox <gi...@apache.org>.
SparkQA commented on issue #27889: [SPARK-31131][SQL] Remove the unnecessary config spark.sql.legacy.timeParser.enabled
URL: https://github.com/apache/spark/pull/27889#issuecomment-598240869
 
 
   **[Test build #119714 has finished](https://amplab.cs.berkeley.edu/jenkins/job/SparkPullRequestBuilder/119714/testReport)** for PR 27889 at commit [`0fc7d98`](https://github.com/apache/spark/commit/0fc7d985ead12cf73a198451e292769509fef1f5).
    * This patch passes all tests.
    * This patch merges cleanly.
    * This patch adds no public classes.

----------------------------------------------------------------
This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.
 
For queries about this service, please contact Infrastructure at:
users@infra.apache.org


With regards,
Apache Git Services

---------------------------------------------------------------------
To unsubscribe, e-mail: reviews-unsubscribe@spark.apache.org
For additional commands, e-mail: reviews-help@spark.apache.org


[GitHub] [spark] SparkQA removed a comment on issue #27889: [SPARK-31131][SQL] Remove the unnecessary config spark.sql.legacy.timeParser.enabled

Posted by GitBox <gi...@apache.org>.
SparkQA removed a comment on issue #27889: [SPARK-31131][SQL] Remove the unnecessary config spark.sql.legacy.timeParser.enabled
URL: https://github.com/apache/spark/pull/27889#issuecomment-598111947
 
 
   **[Test build #119714 has started](https://amplab.cs.berkeley.edu/jenkins/job/SparkPullRequestBuilder/119714/testReport)** for PR 27889 at commit [`0fc7d98`](https://github.com/apache/spark/commit/0fc7d985ead12cf73a198451e292769509fef1f5).

----------------------------------------------------------------
This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.
 
For queries about this service, please contact Infrastructure at:
users@infra.apache.org


With regards,
Apache Git Services

---------------------------------------------------------------------
To unsubscribe, e-mail: reviews-unsubscribe@spark.apache.org
For additional commands, e-mail: reviews-help@spark.apache.org


[GitHub] [spark] yaooqinn commented on a change in pull request #27889: [SPARK-31131][SQL] Remove the unnecessary config spark.sql.legacy.timeParser.enabled

Posted by GitBox <gi...@apache.org>.
yaooqinn commented on a change in pull request #27889: [SPARK-31131][SQL] Remove the unnecessary config spark.sql.legacy.timeParser.enabled
URL: https://github.com/apache/spark/pull/27889#discussion_r391519667
 
 

 ##########
 File path: docs/sql-migration-guide.md
 ##########
 @@ -70,7 +70,7 @@ license: |
 
   - Since Spark 3.0, Proleptic Gregorian calendar is used in parsing, formatting, and converting dates and timestamps as well as in extracting sub-components like years, days and etc. Spark 3.0 uses Java 8 API classes from the java.time packages that based on ISO chronology (https://docs.oracle.com/javase/8/docs/api/java/time/chrono/IsoChronology.html). In Spark version 2.4 and earlier, those operations are performed by using the hybrid calendar (Julian + Gregorian, see https://docs.oracle.com/javase/7/docs/api/java/util/GregorianCalendar.html). The changes impact on the results for dates before October 15, 1582 (Gregorian) and affect on the following Spark 3.0 API:
 
-    - Parsing/formatting of timestamp/date strings. This effects on CSV/JSON datasources and on the `unix_timestamp`, `date_format`, `to_unix_timestamp`, `from_unixtime`, `to_date`, `to_timestamp` functions when patterns specified by users is used for parsing and formatting. Since Spark 3.0, the conversions are based on `java.time.format.DateTimeFormatter`, see https://docs.oracle.com/javase/8/docs/api/java/time/format/DateTimeFormatter.html. New implementation performs strict checking of its input. For example, the `2015-07-22 10:00:00` timestamp cannot be parse if pattern is `yyyy-MM-dd` because the parser does not consume whole input. Another example is the `31/01/2015 00:00` input cannot be parsed by the `dd/MM/yyyy hh:mm` pattern because `hh` supposes hours in the range `1-12`. In Spark version 2.4 and earlier, `java.text.SimpleDateFormat` is used for timestamp/date string conversions, and the supported patterns are described in https://docs.oracle.com/javase/7/docs/api/java/text/SimpleDateFormat.html. The old behavior can be restored by setting `spark.sql.legacy.timeParser.enabled` to `true`.
+    - Parsing/formatting of timestamp/date strings. This effects on CSV/JSON datasources and on the `unix_timestamp`, `date_format`, `to_unix_timestamp`, `from_unixtime`, `to_date`, `to_timestamp` functions when patterns specified by users is used for parsing and formatting. Since Spark 3.0, the conversions are based on `java.time.format.DateTimeFormatter`, see https://docs.oracle.com/javase/8/docs/api/java/time/format/DateTimeFormatter.html. New implementation performs strict checking of its input. For example, the `2015-07-22 10:00:00` timestamp cannot be parse if pattern is `yyyy-MM-dd` because the parser does not consume whole input. Another example is the `31/01/2015 00:00` input cannot be parsed by the `dd/MM/yyyy hh:mm` pattern because `hh` supposes hours in the range `1-12`. In Spark version 2.4 and earlier, `java.text.SimpleDateFormat` is used for timestamp/date string conversions, and the supported patterns are described in https://docs.oracle.com/javase/7/docs/api/java/text/SimpleDateFormat.html. The old behavior can be restored by setting `spark.sql.legacy.timeParserPolicy` to `LEGACY`.
 
 Review comment:
   I notice that the pattern we defined in  `sql-ref-datetime-pattern.md` is slightly different from javadoc, e.g.  we have `M` but javadoc has 'M\L' for month-of-year. On any purpurse?

----------------------------------------------------------------
This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.
 
For queries about this service, please contact Infrastructure at:
users@infra.apache.org


With regards,
Apache Git Services

---------------------------------------------------------------------
To unsubscribe, e-mail: reviews-unsubscribe@spark.apache.org
For additional commands, e-mail: reviews-help@spark.apache.org


[GitHub] [spark] AmplabJenkins commented on issue #27889: [SPARK-31131][SQL] Remove the unnecessary config spark.sql.legacy.timeParser.enabled

Posted by GitBox <gi...@apache.org>.
AmplabJenkins commented on issue #27889: [SPARK-31131][SQL] Remove the unnecessary config spark.sql.legacy.timeParser.enabled
URL: https://github.com/apache/spark/pull/27889#issuecomment-598091740
 
 
   Merged build finished. Test PASSed.

----------------------------------------------------------------
This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.
 
For queries about this service, please contact Infrastructure at:
users@infra.apache.org


With regards,
Apache Git Services

---------------------------------------------------------------------
To unsubscribe, e-mail: reviews-unsubscribe@spark.apache.org
For additional commands, e-mail: reviews-help@spark.apache.org


[GitHub] [spark] AmplabJenkins removed a comment on issue #27889: [SPARK-31131][SQL] Remove the unnecessary config spark.sql.legacy.timeParser.enabled

Posted by GitBox <gi...@apache.org>.
AmplabJenkins removed a comment on issue #27889: [SPARK-31131][SQL] Remove the unnecessary config spark.sql.legacy.timeParser.enabled
URL: https://github.com/apache/spark/pull/27889#issuecomment-598091753
 
 
   Test PASSed.
   Refer to this link for build results (access rights to CI server needed): 
   https://amplab.cs.berkeley.edu/jenkins//job/SparkPullRequestBuilder-K8s/24441/
   Test PASSed.

----------------------------------------------------------------
This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.
 
For queries about this service, please contact Infrastructure at:
users@infra.apache.org


With regards,
Apache Git Services

---------------------------------------------------------------------
To unsubscribe, e-mail: reviews-unsubscribe@spark.apache.org
For additional commands, e-mail: reviews-help@spark.apache.org


[GitHub] [spark] dongjoon-hyun edited a comment on issue #27889: [SPARK-31131][SQL] Remove the unnecessary config spark.sql.legacy.timeParser.enabled

Posted by GitBox <gi...@apache.org>.
dongjoon-hyun edited a comment on issue #27889: [SPARK-31131][SQL] Remove the unnecessary config spark.sql.legacy.timeParser.enabled
URL: https://github.com/apache/spark/pull/27889#issuecomment-598280941
 
 
   Thank you all. Merged to master/3.0.
   (I resolved the conflicts due to config version in `branch-3.0`).

----------------------------------------------------------------
This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.
 
For queries about this service, please contact Infrastructure at:
users@infra.apache.org


With regards,
Apache Git Services

---------------------------------------------------------------------
To unsubscribe, e-mail: reviews-unsubscribe@spark.apache.org
For additional commands, e-mail: reviews-help@spark.apache.org


[GitHub] [spark] AmplabJenkins commented on issue #27889: [SPARK-31131][SQL] Remove the unnecessary config spark.sql.legacy.timeParser.enabled

Posted by GitBox <gi...@apache.org>.
AmplabJenkins commented on issue #27889: [SPARK-31131][SQL] Remove the unnecessary config spark.sql.legacy.timeParser.enabled
URL: https://github.com/apache/spark/pull/27889#issuecomment-598241936
 
 
   Test PASSed.
   Refer to this link for build results (access rights to CI server needed): 
   https://amplab.cs.berkeley.edu/jenkins//job/SparkPullRequestBuilder/119714/
   Test PASSed.

----------------------------------------------------------------
This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.
 
For queries about this service, please contact Infrastructure at:
users@infra.apache.org


With regards,
Apache Git Services

---------------------------------------------------------------------
To unsubscribe, e-mail: reviews-unsubscribe@spark.apache.org
For additional commands, e-mail: reviews-help@spark.apache.org


[GitHub] [spark] AmplabJenkins removed a comment on issue #27889: [SPARK-31131][SQL] Remove the unnecessary config spark.sql.legacy.timeParser.enabled

Posted by GitBox <gi...@apache.org>.
AmplabJenkins removed a comment on issue #27889: [SPARK-31131][SQL] Remove the unnecessary config spark.sql.legacy.timeParser.enabled
URL: https://github.com/apache/spark/pull/27889#issuecomment-598241925
 
 
   Merged build finished. Test PASSed.

----------------------------------------------------------------
This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.
 
For queries about this service, please contact Infrastructure at:
users@infra.apache.org


With regards,
Apache Git Services

---------------------------------------------------------------------
To unsubscribe, e-mail: reviews-unsubscribe@spark.apache.org
For additional commands, e-mail: reviews-help@spark.apache.org


[GitHub] [spark] AmplabJenkins removed a comment on issue #27889: [SPARK-31131][SQL] Remove the unnecessary config spark.sql.legacy.timeParser.enabled

Posted by GitBox <gi...@apache.org>.
AmplabJenkins removed a comment on issue #27889: [SPARK-31131][SQL] Remove the unnecessary config spark.sql.legacy.timeParser.enabled
URL: https://github.com/apache/spark/pull/27889#issuecomment-598091740
 
 
   Merged build finished. Test PASSed.

----------------------------------------------------------------
This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.
 
For queries about this service, please contact Infrastructure at:
users@infra.apache.org


With regards,
Apache Git Services

---------------------------------------------------------------------
To unsubscribe, e-mail: reviews-unsubscribe@spark.apache.org
For additional commands, e-mail: reviews-help@spark.apache.org


[GitHub] [spark] SparkQA commented on issue #27889: [SPARK-31131][SQL] Remove the unnecessary config spark.sql.legacy.timeParser.enabled

Posted by GitBox <gi...@apache.org>.
SparkQA commented on issue #27889: [SPARK-31131][SQL] Remove the unnecessary config spark.sql.legacy.timeParser.enabled
URL: https://github.com/apache/spark/pull/27889#issuecomment-598091331
 
 
   **[Test build #119712 has started](https://amplab.cs.berkeley.edu/jenkins/job/SparkPullRequestBuilder/119712/testReport)** for PR 27889 at commit [`1bc237a`](https://github.com/apache/spark/commit/1bc237aad1313dc2fd4dedbc3d4d30474020de7c).

----------------------------------------------------------------
This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.
 
For queries about this service, please contact Infrastructure at:
users@infra.apache.org


With regards,
Apache Git Services

---------------------------------------------------------------------
To unsubscribe, e-mail: reviews-unsubscribe@spark.apache.org
For additional commands, e-mail: reviews-help@spark.apache.org


[GitHub] [spark] AmplabJenkins removed a comment on issue #27889: [SPARK-31131][SQL] Remove the unnecessary config spark.sql.legacy.timeParser.enabled

Posted by GitBox <gi...@apache.org>.
AmplabJenkins removed a comment on issue #27889: [SPARK-31131][SQL] Remove the unnecessary config spark.sql.legacy.timeParser.enabled
URL: https://github.com/apache/spark/pull/27889#issuecomment-598112605
 
 
   Merged build finished. Test PASSed.

----------------------------------------------------------------
This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.
 
For queries about this service, please contact Infrastructure at:
users@infra.apache.org


With regards,
Apache Git Services

---------------------------------------------------------------------
To unsubscribe, e-mail: reviews-unsubscribe@spark.apache.org
For additional commands, e-mail: reviews-help@spark.apache.org


[GitHub] [spark] AmplabJenkins removed a comment on issue #27889: [SPARK-31131][SQL] Remove the unnecessary config spark.sql.legacy.timeParser.enabled

Posted by GitBox <gi...@apache.org>.
AmplabJenkins removed a comment on issue #27889: [SPARK-31131][SQL] Remove the unnecessary config spark.sql.legacy.timeParser.enabled
URL: https://github.com/apache/spark/pull/27889#issuecomment-598221961
 
 
   Test PASSed.
   Refer to this link for build results (access rights to CI server needed): 
   https://amplab.cs.berkeley.edu/jenkins//job/SparkPullRequestBuilder/119712/
   Test PASSed.

----------------------------------------------------------------
This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.
 
For queries about this service, please contact Infrastructure at:
users@infra.apache.org


With regards,
Apache Git Services

---------------------------------------------------------------------
To unsubscribe, e-mail: reviews-unsubscribe@spark.apache.org
For additional commands, e-mail: reviews-help@spark.apache.org


[GitHub] [spark] AmplabJenkins removed a comment on issue #27889: [SPARK-31131][SQL] Remove the unnecessary config spark.sql.legacy.timeParser.enabled

Posted by GitBox <gi...@apache.org>.
AmplabJenkins removed a comment on issue #27889: [SPARK-31131][SQL] Remove the unnecessary config spark.sql.legacy.timeParser.enabled
URL: https://github.com/apache/spark/pull/27889#issuecomment-598241936
 
 
   Test PASSed.
   Refer to this link for build results (access rights to CI server needed): 
   https://amplab.cs.berkeley.edu/jenkins//job/SparkPullRequestBuilder/119714/
   Test PASSed.

----------------------------------------------------------------
This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.
 
For queries about this service, please contact Infrastructure at:
users@infra.apache.org


With regards,
Apache Git Services

---------------------------------------------------------------------
To unsubscribe, e-mail: reviews-unsubscribe@spark.apache.org
For additional commands, e-mail: reviews-help@spark.apache.org


[GitHub] [spark] xuanyuanking commented on a change in pull request #27889: [SPARK-31131][SQL] Remove the unnecessary config spark.sql.legacy.timeParser.enabled

Posted by GitBox <gi...@apache.org>.
xuanyuanking commented on a change in pull request #27889: [SPARK-31131][SQL] Remove the unnecessary config spark.sql.legacy.timeParser.enabled
URL: https://github.com/apache/spark/pull/27889#discussion_r395424154
 
 

 ##########
 File path: docs/sql-migration-guide.md
 ##########
 @@ -70,7 +70,7 @@ license: |
 
   - Since Spark 3.0, Proleptic Gregorian calendar is used in parsing, formatting, and converting dates and timestamps as well as in extracting sub-components like years, days and etc. Spark 3.0 uses Java 8 API classes from the java.time packages that based on ISO chronology (https://docs.oracle.com/javase/8/docs/api/java/time/chrono/IsoChronology.html). In Spark version 2.4 and earlier, those operations are performed by using the hybrid calendar (Julian + Gregorian, see https://docs.oracle.com/javase/7/docs/api/java/util/GregorianCalendar.html). The changes impact on the results for dates before October 15, 1582 (Gregorian) and affect on the following Spark 3.0 API:
 
-    - Parsing/formatting of timestamp/date strings. This effects on CSV/JSON datasources and on the `unix_timestamp`, `date_format`, `to_unix_timestamp`, `from_unixtime`, `to_date`, `to_timestamp` functions when patterns specified by users is used for parsing and formatting. Since Spark 3.0, the conversions are based on `java.time.format.DateTimeFormatter`, see https://docs.oracle.com/javase/8/docs/api/java/time/format/DateTimeFormatter.html. New implementation performs strict checking of its input. For example, the `2015-07-22 10:00:00` timestamp cannot be parse if pattern is `yyyy-MM-dd` because the parser does not consume whole input. Another example is the `31/01/2015 00:00` input cannot be parsed by the `dd/MM/yyyy hh:mm` pattern because `hh` supposes hours in the range `1-12`. In Spark version 2.4 and earlier, `java.text.SimpleDateFormat` is used for timestamp/date string conversions, and the supported patterns are described in https://docs.oracle.com/javase/7/docs/api/java/text/SimpleDateFormat.html. The old behavior can be restored by setting `spark.sql.legacy.timeParser.enabled` to `true`.
+    - Parsing/formatting of timestamp/date strings. This effects on CSV/JSON datasources and on the `unix_timestamp`, `date_format`, `to_unix_timestamp`, `from_unixtime`, `to_date`, `to_timestamp` functions when patterns specified by users is used for parsing and formatting. Since Spark 3.0, the conversions are based on `java.time.format.DateTimeFormatter`, see https://docs.oracle.com/javase/8/docs/api/java/time/format/DateTimeFormatter.html. New implementation performs strict checking of its input. For example, the `2015-07-22 10:00:00` timestamp cannot be parse if pattern is `yyyy-MM-dd` because the parser does not consume whole input. Another example is the `31/01/2015 00:00` input cannot be parsed by the `dd/MM/yyyy hh:mm` pattern because `hh` supposes hours in the range `1-12`. In Spark version 2.4 and earlier, `java.text.SimpleDateFormat` is used for timestamp/date string conversions, and the supported patterns are described in https://docs.oracle.com/javase/7/docs/api/java/text/SimpleDateFormat.html. The old behavior can be restored by setting `spark.sql.legacy.timeParserPolicy` to `LEGACY`.
 
 Review comment:
   I just keep the letters appeared in the old `SimpleDateFormat` for the first version, it's OK to add them back.

----------------------------------------------------------------
This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.
 
For queries about this service, please contact Infrastructure at:
users@infra.apache.org


With regards,
Apache Git Services

---------------------------------------------------------------------
To unsubscribe, e-mail: reviews-unsubscribe@spark.apache.org
For additional commands, e-mail: reviews-help@spark.apache.org


[GitHub] [spark] AmplabJenkins commented on issue #27889: [SPARK-31131][SQL] Remove the unnecessary config spark.sql.legacy.timeParser.enabled

Posted by GitBox <gi...@apache.org>.
AmplabJenkins commented on issue #27889: [SPARK-31131][SQL] Remove the unnecessary config spark.sql.legacy.timeParser.enabled
URL: https://github.com/apache/spark/pull/27889#issuecomment-598221948
 
 
   Merged build finished. Test PASSed.

----------------------------------------------------------------
This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.
 
For queries about this service, please contact Infrastructure at:
users@infra.apache.org


With regards,
Apache Git Services

---------------------------------------------------------------------
To unsubscribe, e-mail: reviews-unsubscribe@spark.apache.org
For additional commands, e-mail: reviews-help@spark.apache.org


[GitHub] [spark] AmplabJenkins removed a comment on issue #27889: [SPARK-31131][SQL] Remove the unnecessary config spark.sql.legacy.timeParser.enabled

Posted by GitBox <gi...@apache.org>.
AmplabJenkins removed a comment on issue #27889: [SPARK-31131][SQL] Remove the unnecessary config spark.sql.legacy.timeParser.enabled
URL: https://github.com/apache/spark/pull/27889#issuecomment-598221948
 
 
   Merged build finished. Test PASSed.

----------------------------------------------------------------
This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.
 
For queries about this service, please contact Infrastructure at:
users@infra.apache.org


With regards,
Apache Git Services

---------------------------------------------------------------------
To unsubscribe, e-mail: reviews-unsubscribe@spark.apache.org
For additional commands, e-mail: reviews-help@spark.apache.org


[GitHub] [spark] AmplabJenkins commented on issue #27889: [SPARK-31131][SQL] Remove the unnecessary config spark.sql.legacy.timeParser.enabled

Posted by GitBox <gi...@apache.org>.
AmplabJenkins commented on issue #27889: [SPARK-31131][SQL] Remove the unnecessary config spark.sql.legacy.timeParser.enabled
URL: https://github.com/apache/spark/pull/27889#issuecomment-598112605
 
 
   Merged build finished. Test PASSed.

----------------------------------------------------------------
This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.
 
For queries about this service, please contact Infrastructure at:
users@infra.apache.org


With regards,
Apache Git Services

---------------------------------------------------------------------
To unsubscribe, e-mail: reviews-unsubscribe@spark.apache.org
For additional commands, e-mail: reviews-help@spark.apache.org


[GitHub] [spark] dongjoon-hyun commented on issue #27889: [SPARK-31131][SQL] Remove the unnecessary config spark.sql.legacy.timeParser.enabled

Posted by GitBox <gi...@apache.org>.
dongjoon-hyun commented on issue #27889: [SPARK-31131][SQL] Remove the unnecessary config spark.sql.legacy.timeParser.enabled
URL: https://github.com/apache/spark/pull/27889#issuecomment-598280941
 
 
   Thank you all. Merged to master/3.0.

----------------------------------------------------------------
This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.
 
For queries about this service, please contact Infrastructure at:
users@infra.apache.org


With regards,
Apache Git Services

---------------------------------------------------------------------
To unsubscribe, e-mail: reviews-unsubscribe@spark.apache.org
For additional commands, e-mail: reviews-help@spark.apache.org


[GitHub] [spark] dongjoon-hyun closed pull request #27889: [SPARK-31131][SQL] Remove the unnecessary config spark.sql.legacy.timeParser.enabled

Posted by GitBox <gi...@apache.org>.
dongjoon-hyun closed pull request #27889: [SPARK-31131][SQL] Remove the unnecessary config spark.sql.legacy.timeParser.enabled
URL: https://github.com/apache/spark/pull/27889
 
 
   

----------------------------------------------------------------
This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.
 
For queries about this service, please contact Infrastructure at:
users@infra.apache.org


With regards,
Apache Git Services

---------------------------------------------------------------------
To unsubscribe, e-mail: reviews-unsubscribe@spark.apache.org
For additional commands, e-mail: reviews-help@spark.apache.org


[GitHub] [spark] cloud-fan commented on a change in pull request #27889: [SPARK-31131][SQL] Remove the unnecessary config spark.sql.legacy.timeParser.enabled

Posted by GitBox <gi...@apache.org>.
cloud-fan commented on a change in pull request #27889: [SPARK-31131][SQL] Remove the unnecessary config spark.sql.legacy.timeParser.enabled
URL: https://github.com/apache/spark/pull/27889#discussion_r391521163
 
 

 ##########
 File path: docs/sql-migration-guide.md
 ##########
 @@ -70,7 +70,7 @@ license: |
 
   - Since Spark 3.0, Proleptic Gregorian calendar is used in parsing, formatting, and converting dates and timestamps as well as in extracting sub-components like years, days and etc. Spark 3.0 uses Java 8 API classes from the java.time packages that based on ISO chronology (https://docs.oracle.com/javase/8/docs/api/java/time/chrono/IsoChronology.html). In Spark version 2.4 and earlier, those operations are performed by using the hybrid calendar (Julian + Gregorian, see https://docs.oracle.com/javase/7/docs/api/java/util/GregorianCalendar.html). The changes impact on the results for dates before October 15, 1582 (Gregorian) and affect on the following Spark 3.0 API:
 
-    - Parsing/formatting of timestamp/date strings. This effects on CSV/JSON datasources and on the `unix_timestamp`, `date_format`, `to_unix_timestamp`, `from_unixtime`, `to_date`, `to_timestamp` functions when patterns specified by users is used for parsing and formatting. Since Spark 3.0, the conversions are based on `java.time.format.DateTimeFormatter`, see https://docs.oracle.com/javase/8/docs/api/java/time/format/DateTimeFormatter.html. New implementation performs strict checking of its input. For example, the `2015-07-22 10:00:00` timestamp cannot be parse if pattern is `yyyy-MM-dd` because the parser does not consume whole input. Another example is the `31/01/2015 00:00` input cannot be parsed by the `dd/MM/yyyy hh:mm` pattern because `hh` supposes hours in the range `1-12`. In Spark version 2.4 and earlier, `java.text.SimpleDateFormat` is used for timestamp/date string conversions, and the supported patterns are described in https://docs.oracle.com/javase/7/docs/api/java/text/SimpleDateFormat.html. The old behavior can be restored by setting `spark.sql.legacy.timeParser.enabled` to `true`.
+    - Parsing/formatting of timestamp/date strings. This effects on CSV/JSON datasources and on the `unix_timestamp`, `date_format`, `to_unix_timestamp`, `from_unixtime`, `to_date`, `to_timestamp` functions when patterns specified by users is used for parsing and formatting. Since Spark 3.0, the conversions are based on `java.time.format.DateTimeFormatter`, see https://docs.oracle.com/javase/8/docs/api/java/time/format/DateTimeFormatter.html. New implementation performs strict checking of its input. For example, the `2015-07-22 10:00:00` timestamp cannot be parse if pattern is `yyyy-MM-dd` because the parser does not consume whole input. Another example is the `31/01/2015 00:00` input cannot be parsed by the `dd/MM/yyyy hh:mm` pattern because `hh` supposes hours in the range `1-12`. In Spark version 2.4 and earlier, `java.text.SimpleDateFormat` is used for timestamp/date string conversions, and the supported patterns are described in https://docs.oracle.com/javase/7/docs/api/java/text/SimpleDateFormat.html. The old behavior can be restored by setting `spark.sql.legacy.timeParserPolicy` to `LEGACY`.
 
 Review comment:
   The goal is to be compatible with the old `SimpleDateFormat`, but `L` seems fine. @xuanyuanking do you have any clue?

----------------------------------------------------------------
This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.
 
For queries about this service, please contact Infrastructure at:
users@infra.apache.org


With regards,
Apache Git Services

---------------------------------------------------------------------
To unsubscribe, e-mail: reviews-unsubscribe@spark.apache.org
For additional commands, e-mail: reviews-help@spark.apache.org


[GitHub] [spark] AmplabJenkins commented on issue #27889: [SPARK-31131][SQL] Remove the unnecessary config spark.sql.legacy.timeParser.enabled

Posted by GitBox <gi...@apache.org>.
AmplabJenkins commented on issue #27889: [SPARK-31131][SQL] Remove the unnecessary config spark.sql.legacy.timeParser.enabled
URL: https://github.com/apache/spark/pull/27889#issuecomment-598112611
 
 
   Test PASSed.
   Refer to this link for build results (access rights to CI server needed): 
   https://amplab.cs.berkeley.edu/jenkins//job/SparkPullRequestBuilder-K8s/24443/
   Test PASSed.

----------------------------------------------------------------
This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.
 
For queries about this service, please contact Infrastructure at:
users@infra.apache.org


With regards,
Apache Git Services

---------------------------------------------------------------------
To unsubscribe, e-mail: reviews-unsubscribe@spark.apache.org
For additional commands, e-mail: reviews-help@spark.apache.org


[GitHub] [spark] yaooqinn commented on issue #27889: [SPARK-31131][SQL] Remove the unnecessary config spark.sql.legacy.timeParser.enabled

Posted by GitBox <gi...@apache.org>.
yaooqinn commented on issue #27889: [SPARK-31131][SQL] Remove the unnecessary config spark.sql.legacy.timeParser.enabled
URL: https://github.com/apache/spark/pull/27889#issuecomment-598096395
 
 
   thanks @dongjoon-hyun 

----------------------------------------------------------------
This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.
 
For queries about this service, please contact Infrastructure at:
users@infra.apache.org


With regards,
Apache Git Services

---------------------------------------------------------------------
To unsubscribe, e-mail: reviews-unsubscribe@spark.apache.org
For additional commands, e-mail: reviews-help@spark.apache.org