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 2021/11/18 02:08:07 UTC
[GitHub] [spark] sadikovi opened a new pull request #34638: [SPARK-37360][SQL] Support TimestampNTZ in JSON data source
sadikovi opened a new pull request #34638:
URL: https://github.com/apache/spark/pull/34638
### What changes were proposed in this pull request?
This PR adds support for TimestampNTZ type in the JSON data source.
Most of the functionality has already been added, this patch verifies that writes + reads work for TimestampNTZ type and adds schema inference depending on the timestamp value format written. The following applies:
- If there is a mixture of `TIMESTAMP_NTZ` and `TIMESTAMP_LTZ` values, use `TIMESTAMP_LTZ`.
- If there are only `TIMESTAMP_NTZ` values, resolve using the the default timestamp type configured with `spark.sql.timestampType`.
In addition, I introduced a new JSON option `timestampNTZFormat` which is similar to `timestampFormat` but it allows to configure read/write pattern for `TIMESTAMP_NTZ` types. It is basically a copy of timestamp pattern but without timezone.
### Why are the changes needed?
The PR fixes issues when writing and reading TimestampNTZ to and from JSON.
### Does this PR introduce _any_ user-facing change?
Previously, JSON data source would infer timestamp values as `TimestampType` when reading a JSON file. Now, the data source would infer the timestamp value type based on the format (with or without timezone) and default timestamp type based on `spark.sql.timestampType`.
A new JSON option `timestampNTZFormat` is added to control the way values are formatted during writes or parsed during reads.
### How was this patch tested?
I extended `JsonSuite` with a few unit tests to verify that write-read roundtrip works for `TIMESTAMP_NTZ` and `TIMESTAMP_LTZ` values.
--
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.
To unsubscribe, e-mail: reviews-unsubscribe@spark.apache.org
For queries about this service, please contact Infrastructure at:
users@infra.apache.org
---------------------------------------------------------------------
To unsubscribe, e-mail: reviews-unsubscribe@spark.apache.org
For additional commands, e-mail: reviews-help@spark.apache.org
[GitHub] [spark] SparkQA commented on pull request #34638: [SPARK-37360][SQL] Support TimestampNTZ in JSON data source
Posted by GitBox <gi...@apache.org>.
SparkQA commented on pull request #34638:
URL: https://github.com/apache/spark/pull/34638#issuecomment-972525314
Kubernetes integration test status failure
URL: https://amplab.cs.berkeley.edu/jenkins/job/SparkPullRequestBuilder-K8s/49831/
--
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.
To unsubscribe, e-mail: reviews-unsubscribe@spark.apache.org
For queries about this service, please contact Infrastructure at:
users@infra.apache.org
---------------------------------------------------------------------
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 pull request #34638: [SPARK-37360][SQL] Support TimestampNTZ in JSON data source
Posted by GitBox <gi...@apache.org>.
SparkQA removed a comment on pull request #34638:
URL: https://github.com/apache/spark/pull/34638#issuecomment-973653649
**[Test build #145428 has started](https://amplab.cs.berkeley.edu/jenkins/job/SparkPullRequestBuilder/145428/testReport)** for PR 34638 at commit [`e867277`](https://github.com/apache/spark/commit/e86727798b7e273e4dd476e56d88f5f27077dc64).
--
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.
To unsubscribe, e-mail: reviews-unsubscribe@spark.apache.org
For queries about this service, please contact Infrastructure at:
users@infra.apache.org
---------------------------------------------------------------------
To unsubscribe, e-mail: reviews-unsubscribe@spark.apache.org
For additional commands, e-mail: reviews-help@spark.apache.org
[GitHub] [spark] SparkQA commented on pull request #34638: [SPARK-37360][SQL] Support TimestampNTZ in JSON data source
Posted by GitBox <gi...@apache.org>.
SparkQA commented on pull request #34638:
URL: https://github.com/apache/spark/pull/34638#issuecomment-985192049
**[Test build #145873 has finished](https://amplab.cs.berkeley.edu/jenkins/job/SparkPullRequestBuilder/145873/testReport)** for PR 34638 at commit [`2cdbb18`](https://github.com/apache/spark/commit/2cdbb18144c7352f8b8418e64bd7d3b06b32f5cc).
* This patch **fails Spark unit 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.
To unsubscribe, e-mail: reviews-unsubscribe@spark.apache.org
For queries about this service, please contact Infrastructure at:
users@infra.apache.org
---------------------------------------------------------------------
To unsubscribe, e-mail: reviews-unsubscribe@spark.apache.org
For additional commands, e-mail: reviews-help@spark.apache.org
[GitHub] [spark] AmplabJenkins commented on pull request #34638: [SPARK-37360][SQL] Support TimestampNTZ in JSON data source
Posted by GitBox <gi...@apache.org>.
AmplabJenkins commented on pull request #34638:
URL: https://github.com/apache/spark/pull/34638#issuecomment-985253937
Refer to this link for build results (access rights to CI server needed):
https://amplab.cs.berkeley.edu/jenkins//job/SparkPullRequestBuilder-K8s/50358/
--
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.
To unsubscribe, e-mail: reviews-unsubscribe@spark.apache.org
For queries about this service, please contact Infrastructure at:
users@infra.apache.org
---------------------------------------------------------------------
To unsubscribe, e-mail: reviews-unsubscribe@spark.apache.org
For additional commands, e-mail: reviews-help@spark.apache.org
[GitHub] [spark] sadikovi commented on pull request #34638: [SPARK-37360][SQL] Support TimestampNTZ in JSON data source
Posted by GitBox <gi...@apache.org>.
sadikovi commented on pull request #34638:
URL: https://github.com/apache/spark/pull/34638#issuecomment-986477557
JSONOptions have the following comment for `inferTimestamp`:
> Enables inferring of TimestampType and TimestampNTZType from strings matched to the corresponding timestamp pattern defined by the timestampFormat and timestampNTZFormat options respectively.
Let me know if you would like any modifications to the javadoc.
I also updated the tests, would appreciate another round of reviews. 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.
To unsubscribe, e-mail: reviews-unsubscribe@spark.apache.org
For queries about this service, please contact Infrastructure at:
users@infra.apache.org
---------------------------------------------------------------------
To unsubscribe, e-mail: reviews-unsubscribe@spark.apache.org
For additional commands, e-mail: reviews-help@spark.apache.org
[GitHub] [spark] SparkQA commented on pull request #34638: [SPARK-37360][SQL] Support TimestampNTZ in JSON data source
Posted by GitBox <gi...@apache.org>.
SparkQA commented on pull request #34638:
URL: https://github.com/apache/spark/pull/34638#issuecomment-973787285
Kubernetes integration test status failure
URL: https://amplab.cs.berkeley.edu/jenkins/job/SparkPullRequestBuilder-K8s/49907/
--
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.
To unsubscribe, e-mail: reviews-unsubscribe@spark.apache.org
For queries about this service, please contact Infrastructure at:
users@infra.apache.org
---------------------------------------------------------------------
To unsubscribe, e-mail: reviews-unsubscribe@spark.apache.org
For additional commands, e-mail: reviews-help@spark.apache.org
[GitHub] [spark] AmplabJenkins commented on pull request #34638: [SPARK-37360][SQL] Support TimestampNTZ in JSON data source
Posted by GitBox <gi...@apache.org>.
AmplabJenkins commented on pull request #34638:
URL: https://github.com/apache/spark/pull/34638#issuecomment-973794159
Refer to this link for build results (access rights to CI server needed):
https://amplab.cs.berkeley.edu/jenkins//job/SparkPullRequestBuilder-K8s/49907/
--
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.
To unsubscribe, e-mail: reviews-unsubscribe@spark.apache.org
For queries about this service, please contact Infrastructure at:
users@infra.apache.org
---------------------------------------------------------------------
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 pull request #34638: [SPARK-37360][SQL] Support TimestampNTZ in JSON data source
Posted by GitBox <gi...@apache.org>.
AmplabJenkins removed a comment on pull request #34638:
URL: https://github.com/apache/spark/pull/34638#issuecomment-972530340
Refer to this link for build results (access rights to CI server needed):
https://amplab.cs.berkeley.edu/jenkins//job/SparkPullRequestBuilder-K8s/49831/
--
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.
To unsubscribe, e-mail: reviews-unsubscribe@spark.apache.org
For queries about this service, please contact Infrastructure at:
users@infra.apache.org
---------------------------------------------------------------------
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 pull request #34638: [SPARK-37360][SQL] Support TimestampNTZ in JSON data source
Posted by GitBox <gi...@apache.org>.
SparkQA removed a comment on pull request #34638:
URL: https://github.com/apache/spark/pull/34638#issuecomment-972461642
**[Test build #145360 has started](https://amplab.cs.berkeley.edu/jenkins/job/SparkPullRequestBuilder/145360/testReport)** for PR 34638 at commit [`f9d097c`](https://github.com/apache/spark/commit/f9d097cd5b7be8f2d3befa2b372a654163c7229d).
--
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.
To unsubscribe, e-mail: reviews-unsubscribe@spark.apache.org
For queries about this service, please contact Infrastructure at:
users@infra.apache.org
---------------------------------------------------------------------
To unsubscribe, e-mail: reviews-unsubscribe@spark.apache.org
For additional commands, e-mail: reviews-help@spark.apache.org
[GitHub] [spark] SparkQA commented on pull request #34638: [SPARK-37360][SQL] Support TimestampNTZ in JSON data source
Posted by GitBox <gi...@apache.org>.
SparkQA commented on pull request #34638:
URL: https://github.com/apache/spark/pull/34638#issuecomment-985253917
Kubernetes integration test status failure
URL: https://amplab.cs.berkeley.edu/jenkins/job/SparkPullRequestBuilder-K8s/50358/
--
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.
To unsubscribe, e-mail: reviews-unsubscribe@spark.apache.org
For queries about this service, please contact Infrastructure at:
users@infra.apache.org
---------------------------------------------------------------------
To unsubscribe, e-mail: reviews-unsubscribe@spark.apache.org
For additional commands, e-mail: reviews-help@spark.apache.org
[GitHub] [spark] sadikovi commented on a change in pull request #34638: [SPARK-37360][SQL] Support TimestampNTZ in JSON data source
Posted by GitBox <gi...@apache.org>.
sadikovi commented on a change in pull request #34638:
URL: https://github.com/apache/spark/pull/34638#discussion_r761687166
##########
File path: sql/core/src/test/scala/org/apache/spark/sql/execution/datasources/json/JsonSuite.scala
##########
@@ -2746,6 +2746,182 @@ abstract class JsonSuite
}
}
+ test("SPARK-37360: Write and infer TIMESTAMP_NTZ values with a non-default pattern") {
+ withTempPath { path =>
+ val exp = spark.sql("select timestamp_ntz'2020-12-12 12:12:12' as col0")
Review comment:
It means "expected", not "expression".
--
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.
To unsubscribe, e-mail: reviews-unsubscribe@spark.apache.org
For queries about this service, please contact Infrastructure at:
users@infra.apache.org
---------------------------------------------------------------------
To unsubscribe, e-mail: reviews-unsubscribe@spark.apache.org
For additional commands, e-mail: reviews-help@spark.apache.org
[GitHub] [spark] SparkQA commented on pull request #34638: [SPARK-37360][SQL] Support TimestampNTZ in JSON data source
Posted by GitBox <gi...@apache.org>.
SparkQA commented on pull request #34638:
URL: https://github.com/apache/spark/pull/34638#issuecomment-985179676
Kubernetes integration test status failure
URL: https://amplab.cs.berkeley.edu/jenkins/job/SparkPullRequestBuilder-K8s/50349/
--
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.
To unsubscribe, e-mail: reviews-unsubscribe@spark.apache.org
For queries about this service, please contact Infrastructure at:
users@infra.apache.org
---------------------------------------------------------------------
To unsubscribe, e-mail: reviews-unsubscribe@spark.apache.org
For additional commands, e-mail: reviews-help@spark.apache.org
[GitHub] [spark] SparkQA commented on pull request #34638: [SPARK-37360][SQL] Support TimestampNTZ in JSON data source
Posted by GitBox <gi...@apache.org>.
SparkQA commented on pull request #34638:
URL: https://github.com/apache/spark/pull/34638#issuecomment-985142168
**[Test build #145873 has started](https://amplab.cs.berkeley.edu/jenkins/job/SparkPullRequestBuilder/145873/testReport)** for PR 34638 at commit [`2cdbb18`](https://github.com/apache/spark/commit/2cdbb18144c7352f8b8418e64bd7d3b06b32f5cc).
--
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.
To unsubscribe, e-mail: reviews-unsubscribe@spark.apache.org
For queries about this service, please contact Infrastructure at:
users@infra.apache.org
---------------------------------------------------------------------
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 pull request #34638: [SPARK-37360][SQL] Support TimestampNTZ in JSON data source
Posted by GitBox <gi...@apache.org>.
AmplabJenkins removed a comment on pull request #34638:
URL: https://github.com/apache/spark/pull/34638#issuecomment-986556774
Refer to this link for build results (access rights to CI server needed):
https://amplab.cs.berkeley.edu/jenkins//job/SparkPullRequestBuilder-K8s/50416/
--
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.
To unsubscribe, e-mail: reviews-unsubscribe@spark.apache.org
For queries about this service, please contact Infrastructure at:
users@infra.apache.org
---------------------------------------------------------------------
To unsubscribe, e-mail: reviews-unsubscribe@spark.apache.org
For additional commands, e-mail: reviews-help@spark.apache.org
[GitHub] [spark] SparkQA commented on pull request #34638: [SPARK-37360][SQL] Support TimestampNTZ in JSON data source
Posted by GitBox <gi...@apache.org>.
SparkQA commented on pull request #34638:
URL: https://github.com/apache/spark/pull/34638#issuecomment-973653649
**[Test build #145428 has started](https://amplab.cs.berkeley.edu/jenkins/job/SparkPullRequestBuilder/145428/testReport)** for PR 34638 at commit [`e867277`](https://github.com/apache/spark/commit/e86727798b7e273e4dd476e56d88f5f27077dc64).
--
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.
To unsubscribe, e-mail: reviews-unsubscribe@spark.apache.org
For queries about this service, please contact Infrastructure at:
users@infra.apache.org
---------------------------------------------------------------------
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 pull request #34638: [SPARK-37360][SQL] Support TimestampNTZ in JSON data source
Posted by GitBox <gi...@apache.org>.
AmplabJenkins removed a comment on pull request #34638:
URL: https://github.com/apache/spark/pull/34638#issuecomment-973674626
Refer to this link for build results (access rights to CI server needed):
https://amplab.cs.berkeley.edu/jenkins//job/SparkPullRequestBuilder-K8s/49892/
--
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.
To unsubscribe, e-mail: reviews-unsubscribe@spark.apache.org
For queries about this service, please contact Infrastructure at:
users@infra.apache.org
---------------------------------------------------------------------
To unsubscribe, e-mail: reviews-unsubscribe@spark.apache.org
For additional commands, e-mail: reviews-help@spark.apache.org
[GitHub] [spark] AmplabJenkins commented on pull request #34638: [SPARK-37360][SQL] Support TimestampNTZ in JSON data source
Posted by GitBox <gi...@apache.org>.
AmplabJenkins commented on pull request #34638:
URL: https://github.com/apache/spark/pull/34638#issuecomment-973728749
Refer to this link for build results (access rights to CI server needed):
https://amplab.cs.berkeley.edu/jenkins//job/SparkPullRequestBuilder-K8s/49900/
--
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.
To unsubscribe, e-mail: reviews-unsubscribe@spark.apache.org
For queries about this service, please contact Infrastructure at:
users@infra.apache.org
---------------------------------------------------------------------
To unsubscribe, e-mail: reviews-unsubscribe@spark.apache.org
For additional commands, e-mail: reviews-help@spark.apache.org
[GitHub] [spark] SparkQA commented on pull request #34638: [SPARK-37360][SQL] Support TimestampNTZ in JSON data source
Posted by GitBox <gi...@apache.org>.
SparkQA commented on pull request #34638:
URL: https://github.com/apache/spark/pull/34638#issuecomment-973725928
Kubernetes integration test status failure
URL: https://amplab.cs.berkeley.edu/jenkins/job/SparkPullRequestBuilder-K8s/49900/
--
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.
To unsubscribe, e-mail: reviews-unsubscribe@spark.apache.org
For queries about this service, please contact Infrastructure at:
users@infra.apache.org
---------------------------------------------------------------------
To unsubscribe, e-mail: reviews-unsubscribe@spark.apache.org
For additional commands, e-mail: reviews-help@spark.apache.org
[GitHub] [spark] SparkQA commented on pull request #34638: [SPARK-37360][SQL] Support TimestampNTZ in JSON data source
Posted by GitBox <gi...@apache.org>.
SparkQA commented on pull request #34638:
URL: https://github.com/apache/spark/pull/34638#issuecomment-973729433
**[Test build #145428 has finished](https://amplab.cs.berkeley.edu/jenkins/job/SparkPullRequestBuilder/145428/testReport)** for PR 34638 at commit [`e867277`](https://github.com/apache/spark/commit/e86727798b7e273e4dd476e56d88f5f27077dc64).
* This patch **fails Spark unit 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.
To unsubscribe, e-mail: reviews-unsubscribe@spark.apache.org
For queries about this service, please contact Infrastructure at:
users@infra.apache.org
---------------------------------------------------------------------
To unsubscribe, e-mail: reviews-unsubscribe@spark.apache.org
For additional commands, e-mail: reviews-help@spark.apache.org
[GitHub] [spark] SparkQA commented on pull request #34638: [SPARK-37360][SQL] Support TimestampNTZ in JSON data source
Posted by GitBox <gi...@apache.org>.
SparkQA commented on pull request #34638:
URL: https://github.com/apache/spark/pull/34638#issuecomment-972488216
Kubernetes integration test starting
URL: https://amplab.cs.berkeley.edu/jenkins/job/SparkPullRequestBuilder-K8s/49831/
--
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.
To unsubscribe, e-mail: reviews-unsubscribe@spark.apache.org
For queries about this service, please contact Infrastructure at:
users@infra.apache.org
---------------------------------------------------------------------
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 pull request #34638: [SPARK-37360][SQL] Support TimestampNTZ in JSON data source
Posted by GitBox <gi...@apache.org>.
AmplabJenkins removed a comment on pull request #34638:
URL: https://github.com/apache/spark/pull/34638#issuecomment-972608648
Refer to this link for build results (access rights to CI server needed):
https://amplab.cs.berkeley.edu/jenkins//job/SparkPullRequestBuilder/145360/
--
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.
To unsubscribe, e-mail: reviews-unsubscribe@spark.apache.org
For queries about this service, please contact Infrastructure at:
users@infra.apache.org
---------------------------------------------------------------------
To unsubscribe, e-mail: reviews-unsubscribe@spark.apache.org
For additional commands, e-mail: reviews-help@spark.apache.org
[GitHub] [spark] SparkQA commented on pull request #34638: [SPARK-37360][SQL] Support TimestampNTZ in JSON data source
Posted by GitBox <gi...@apache.org>.
SparkQA commented on pull request #34638:
URL: https://github.com/apache/spark/pull/34638#issuecomment-973639424
**[Test build #145418 has finished](https://amplab.cs.berkeley.edu/jenkins/job/SparkPullRequestBuilder/145418/testReport)** for PR 34638 at commit [`522f7de`](https://github.com/apache/spark/commit/522f7de3f1323c17f613d78701d84754762eccf3).
* This patch **fails Spark unit 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.
To unsubscribe, e-mail: reviews-unsubscribe@spark.apache.org
For queries about this service, please contact Infrastructure at:
users@infra.apache.org
---------------------------------------------------------------------
To unsubscribe, e-mail: reviews-unsubscribe@spark.apache.org
For additional commands, e-mail: reviews-help@spark.apache.org
[GitHub] [spark] AmplabJenkins commented on pull request #34638: [SPARK-37360][SQL] Support TimestampNTZ in JSON data source
Posted by GitBox <gi...@apache.org>.
AmplabJenkins commented on pull request #34638:
URL: https://github.com/apache/spark/pull/34638#issuecomment-973674626
Refer to this link for build results (access rights to CI server needed):
https://amplab.cs.berkeley.edu/jenkins//job/SparkPullRequestBuilder-K8s/49892/
--
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.
To unsubscribe, e-mail: reviews-unsubscribe@spark.apache.org
For queries about this service, please contact Infrastructure at:
users@infra.apache.org
---------------------------------------------------------------------
To unsubscribe, e-mail: reviews-unsubscribe@spark.apache.org
For additional commands, e-mail: reviews-help@spark.apache.org
[GitHub] [spark] SparkQA commented on pull request #34638: [SPARK-37360][SQL] Support TimestampNTZ in JSON data source
Posted by GitBox <gi...@apache.org>.
SparkQA commented on pull request #34638:
URL: https://github.com/apache/spark/pull/34638#issuecomment-985140071
**[Test build #145872 has started](https://amplab.cs.berkeley.edu/jenkins/job/SparkPullRequestBuilder/145872/testReport)** for PR 34638 at commit [`412bb61`](https://github.com/apache/spark/commit/412bb61cd2ce4990a8fa3bda386a206c57a874d7).
--
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.
To unsubscribe, e-mail: reviews-unsubscribe@spark.apache.org
For queries about this service, please contact Infrastructure at:
users@infra.apache.org
---------------------------------------------------------------------
To unsubscribe, e-mail: reviews-unsubscribe@spark.apache.org
For additional commands, e-mail: reviews-help@spark.apache.org
[GitHub] [spark] SparkQA commented on pull request #34638: [SPARK-37360][SQL] Support TimestampNTZ in JSON data source
Posted by GitBox <gi...@apache.org>.
SparkQA commented on pull request #34638:
URL: https://github.com/apache/spark/pull/34638#issuecomment-985193478
**[Test build #145874 has finished](https://amplab.cs.berkeley.edu/jenkins/job/SparkPullRequestBuilder/145874/testReport)** for PR 34638 at commit [`5fd0dbe`](https://github.com/apache/spark/commit/5fd0dbe1c96991702448308f82e9cbc7012ab806).
* This patch **fails Spark unit 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.
To unsubscribe, e-mail: reviews-unsubscribe@spark.apache.org
For queries about this service, please contact Infrastructure at:
users@infra.apache.org
---------------------------------------------------------------------
To unsubscribe, e-mail: reviews-unsubscribe@spark.apache.org
For additional commands, e-mail: reviews-help@spark.apache.org
[GitHub] [spark] sadikovi commented on pull request #34638: [SPARK-37360][SQL] Support TimestampNTZ in JSON data source
Posted by GitBox <gi...@apache.org>.
sadikovi commented on pull request #34638:
URL: https://github.com/apache/spark/pull/34638#issuecomment-987200780
Thank you!
--
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.
To unsubscribe, e-mail: reviews-unsubscribe@spark.apache.org
For queries about this service, please contact Infrastructure at:
users@infra.apache.org
---------------------------------------------------------------------
To unsubscribe, e-mail: reviews-unsubscribe@spark.apache.org
For additional commands, e-mail: reviews-help@spark.apache.org
[GitHub] [spark] sadikovi commented on a change in pull request #34638: [SPARK-37360][SQL] Support TimestampNTZ in JSON data source
Posted by GitBox <gi...@apache.org>.
sadikovi commented on a change in pull request #34638:
URL: https://github.com/apache/spark/pull/34638#discussion_r762727935
##########
File path: sql/catalyst/src/main/scala/org/apache/spark/sql/catalyst/json/JsonInferSchema.scala
##########
@@ -144,6 +150,9 @@ private[sql] class JsonInferSchema(options: JSONOptions) extends Serializable {
}
if (options.prefersDecimal && decimalTry.isDefined) {
decimalTry.get
+ } else if (options.inferTimestamp &&
Review comment:
Updated! Could you check the latest PR version? 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.
To unsubscribe, e-mail: reviews-unsubscribe@spark.apache.org
For queries about this service, please contact Infrastructure at:
users@infra.apache.org
---------------------------------------------------------------------
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 pull request #34638: [SPARK-37360][SQL] Support TimestampNTZ in JSON data source
Posted by GitBox <gi...@apache.org>.
AmplabJenkins removed a comment on pull request #34638:
URL: https://github.com/apache/spark/pull/34638#issuecomment-973830074
Refer to this link for build results (access rights to CI server needed):
https://amplab.cs.berkeley.edu/jenkins//job/SparkPullRequestBuilder/145435/
--
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.
To unsubscribe, e-mail: reviews-unsubscribe@spark.apache.org
For queries about this service, please contact Infrastructure at:
users@infra.apache.org
---------------------------------------------------------------------
To unsubscribe, e-mail: reviews-unsubscribe@spark.apache.org
For additional commands, e-mail: reviews-help@spark.apache.org
[GitHub] [spark] AmplabJenkins commented on pull request #34638: [SPARK-37360][SQL] Support TimestampNTZ in JSON data source
Posted by GitBox <gi...@apache.org>.
AmplabJenkins commented on pull request #34638:
URL: https://github.com/apache/spark/pull/34638#issuecomment-972530340
Refer to this link for build results (access rights to CI server needed):
https://amplab.cs.berkeley.edu/jenkins//job/SparkPullRequestBuilder-K8s/49831/
--
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.
To unsubscribe, e-mail: reviews-unsubscribe@spark.apache.org
For queries about this service, please contact Infrastructure at:
users@infra.apache.org
---------------------------------------------------------------------
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 pull request #34638: [SPARK-37360][SQL] Support TimestampNTZ in JSON data source
Posted by GitBox <gi...@apache.org>.
SparkQA removed a comment on pull request #34638:
URL: https://github.com/apache/spark/pull/34638#issuecomment-973732334
**[Test build #145435 has started](https://amplab.cs.berkeley.edu/jenkins/job/SparkPullRequestBuilder/145435/testReport)** for PR 34638 at commit [`55f9e3f`](https://github.com/apache/spark/commit/55f9e3f14847ee4bd35baf27157e45b40d7c9231).
--
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.
To unsubscribe, e-mail: reviews-unsubscribe@spark.apache.org
For queries about this service, please contact Infrastructure at:
users@infra.apache.org
---------------------------------------------------------------------
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 pull request #34638: [SPARK-37360][SQL] Support TimestampNTZ in JSON data source
Posted by GitBox <gi...@apache.org>.
AmplabJenkins removed a comment on pull request #34638:
URL: https://github.com/apache/spark/pull/34638#issuecomment-973729568
Refer to this link for build results (access rights to CI server needed):
https://amplab.cs.berkeley.edu/jenkins//job/SparkPullRequestBuilder/145428/
--
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.
To unsubscribe, e-mail: reviews-unsubscribe@spark.apache.org
For queries about this service, please contact Infrastructure at:
users@infra.apache.org
---------------------------------------------------------------------
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 pull request #34638: [SPARK-37360][SQL] Support TimestampNTZ in JSON data source
Posted by GitBox <gi...@apache.org>.
SparkQA removed a comment on pull request #34638:
URL: https://github.com/apache/spark/pull/34638#issuecomment-985140071
**[Test build #145872 has started](https://amplab.cs.berkeley.edu/jenkins/job/SparkPullRequestBuilder/145872/testReport)** for PR 34638 at commit [`412bb61`](https://github.com/apache/spark/commit/412bb61cd2ce4990a8fa3bda386a206c57a874d7).
--
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.
To unsubscribe, e-mail: reviews-unsubscribe@spark.apache.org
For queries about this service, please contact Infrastructure at:
users@infra.apache.org
---------------------------------------------------------------------
To unsubscribe, e-mail: reviews-unsubscribe@spark.apache.org
For additional commands, e-mail: reviews-help@spark.apache.org
[GitHub] [spark] AmplabJenkins commented on pull request #34638: [SPARK-37360][SQL] Support TimestampNTZ in JSON data source
Posted by GitBox <gi...@apache.org>.
AmplabJenkins commented on pull request #34638:
URL: https://github.com/apache/spark/pull/34638#issuecomment-985186473
--
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.
To unsubscribe, e-mail: reviews-unsubscribe@spark.apache.org
For queries about this service, please contact Infrastructure at:
users@infra.apache.org
---------------------------------------------------------------------
To unsubscribe, e-mail: reviews-unsubscribe@spark.apache.org
For additional commands, e-mail: reviews-help@spark.apache.org
[GitHub] [spark] MaxGekk commented on a change in pull request #34638: [SPARK-37360][SQL] Support TimestampNTZ in JSON data source
Posted by GitBox <gi...@apache.org>.
MaxGekk commented on a change in pull request #34638:
URL: https://github.com/apache/spark/pull/34638#discussion_r761824410
##########
File path: sql/core/src/test/scala/org/apache/spark/sql/execution/datasources/json/JsonSuite.scala
##########
@@ -2746,6 +2746,182 @@ abstract class JsonSuite
}
}
+ test("SPARK-37360: Write and infer TIMESTAMP_NTZ values with a non-default pattern") {
+ withTempPath { path =>
+ val exp = spark.sql("select timestamp_ntz'2020-12-12 12:12:12' as col0")
+ exp.write
+ .option("timestampNTZFormat", "yyyy-MM-dd HH:mm:ss.SSSSSS")
+ .json(path.getAbsolutePath)
+
+ withSQLConf(SQLConf.TIMESTAMP_TYPE.key -> SQLConf.TimestampTypes.TIMESTAMP_NTZ.toString) {
+ val res = spark.read
+ .option("timestampNTZFormat", "yyyy-MM-dd HH:mm:ss.SSSSSS")
+ .option("inferTimestamp", "true")
+ .json(path.getAbsolutePath)
+
+ assert(res.dtypes === exp.dtypes)
+ checkAnswer(res, exp)
+ }
+ }
+ }
+
+ test("SPARK-37360: Write and infer TIMESTAMP_LTZ values with a non-default pattern") {
+ withTempPath { path =>
+ val exp = spark.sql("select timestamp_ltz'2020-12-12 12:12:12' as col0")
Review comment:
Could you append a fraction part like `timestamp_ltz'2020-12-12 12:12:12.123456'`. Though I would guess JSON ds should write `.000000`, and if something went wrong, it won't be able to read even such zeros. But just in case.
--
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.
To unsubscribe, e-mail: reviews-unsubscribe@spark.apache.org
For queries about this service, please contact Infrastructure at:
users@infra.apache.org
---------------------------------------------------------------------
To unsubscribe, e-mail: reviews-unsubscribe@spark.apache.org
For additional commands, e-mail: reviews-help@spark.apache.org
[GitHub] [spark] AmplabJenkins commented on pull request #34638: [SPARK-37360][SQL] Support TimestampNTZ in JSON data source
Posted by GitBox <gi...@apache.org>.
AmplabJenkins commented on pull request #34638:
URL: https://github.com/apache/spark/pull/34638#issuecomment-986699055
Refer to this link for build results (access rights to CI server needed):
https://amplab.cs.berkeley.edu/jenkins//job/SparkPullRequestBuilder/145940/
--
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.
To unsubscribe, e-mail: reviews-unsubscribe@spark.apache.org
For queries about this service, please contact Infrastructure at:
users@infra.apache.org
---------------------------------------------------------------------
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 pull request #34638: [SPARK-37360][SQL] Support TimestampNTZ in JSON data source
Posted by GitBox <gi...@apache.org>.
AmplabJenkins removed a comment on pull request #34638:
URL: https://github.com/apache/spark/pull/34638#issuecomment-986699055
Refer to this link for build results (access rights to CI server needed):
https://amplab.cs.berkeley.edu/jenkins//job/SparkPullRequestBuilder/145940/
--
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.
To unsubscribe, e-mail: reviews-unsubscribe@spark.apache.org
For queries about this service, please contact Infrastructure at:
users@infra.apache.org
---------------------------------------------------------------------
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 pull request #34638: [SPARK-37360][SQL] Support TimestampNTZ in JSON data source
Posted by GitBox <gi...@apache.org>.
AmplabJenkins removed a comment on pull request #34638:
URL: https://github.com/apache/spark/pull/34638#issuecomment-974365091
Can one of the admins verify this patch?
--
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.
To unsubscribe, e-mail: reviews-unsubscribe@spark.apache.org
For queries about this service, please contact Infrastructure at:
users@infra.apache.org
---------------------------------------------------------------------
To unsubscribe, e-mail: reviews-unsubscribe@spark.apache.org
For additional commands, e-mail: reviews-help@spark.apache.org
[GitHub] [spark] SparkQA commented on pull request #34638: [SPARK-37360][SQL] Support TimestampNTZ in JSON data source
Posted by GitBox <gi...@apache.org>.
SparkQA commented on pull request #34638:
URL: https://github.com/apache/spark/pull/34638#issuecomment-985234735
Kubernetes integration test starting
URL: https://amplab.cs.berkeley.edu/jenkins/job/SparkPullRequestBuilder-K8s/50358/
--
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.
To unsubscribe, e-mail: reviews-unsubscribe@spark.apache.org
For queries about this service, please contact Infrastructure at:
users@infra.apache.org
---------------------------------------------------------------------
To unsubscribe, e-mail: reviews-unsubscribe@spark.apache.org
For additional commands, e-mail: reviews-help@spark.apache.org
[GitHub] [spark] SparkQA commented on pull request #34638: [SPARK-37360][SQL] Support TimestampNTZ in JSON data source
Posted by GitBox <gi...@apache.org>.
SparkQA commented on pull request #34638:
URL: https://github.com/apache/spark/pull/34638#issuecomment-985374634
**[Test build #145883 has finished](https://amplab.cs.berkeley.edu/jenkins/job/SparkPullRequestBuilder/145883/testReport)** for PR 34638 at commit [`50690e9`](https://github.com/apache/spark/commit/50690e9a3d51cbc6a35e0bb6efdd229bb01db6a2).
* 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.
To unsubscribe, e-mail: reviews-unsubscribe@spark.apache.org
For queries about this service, please contact Infrastructure at:
users@infra.apache.org
---------------------------------------------------------------------
To unsubscribe, e-mail: reviews-unsubscribe@spark.apache.org
For additional commands, e-mail: reviews-help@spark.apache.org
[GitHub] [spark] gengliangwang commented on pull request #34638: [SPARK-37360][SQL] Support TimestampNTZ in JSON data source
Posted by GitBox <gi...@apache.org>.
gengliangwang commented on pull request #34638:
URL: https://github.com/apache/spark/pull/34638#issuecomment-972500946
I left some comments in the PR for CSV: https://github.com/apache/spark/pull/34596
Let's revisit this one after the CSV one is merged.
--
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.
To unsubscribe, e-mail: reviews-unsubscribe@spark.apache.org
For queries about this service, please contact Infrastructure at:
users@infra.apache.org
---------------------------------------------------------------------
To unsubscribe, e-mail: reviews-unsubscribe@spark.apache.org
For additional commands, e-mail: reviews-help@spark.apache.org
[GitHub] [spark] SparkQA commented on pull request #34638: [SPARK-37360][SQL] Support TimestampNTZ in JSON data source
Posted by GitBox <gi...@apache.org>.
SparkQA commented on pull request #34638:
URL: https://github.com/apache/spark/pull/34638#issuecomment-972605437
**[Test build #145360 has finished](https://amplab.cs.berkeley.edu/jenkins/job/SparkPullRequestBuilder/145360/testReport)** for PR 34638 at commit [`f9d097c`](https://github.com/apache/spark/commit/f9d097cd5b7be8f2d3befa2b372a654163c7229d).
* 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.
To unsubscribe, e-mail: reviews-unsubscribe@spark.apache.org
For queries about this service, please contact Infrastructure at:
users@infra.apache.org
---------------------------------------------------------------------
To unsubscribe, e-mail: reviews-unsubscribe@spark.apache.org
For additional commands, e-mail: reviews-help@spark.apache.org
[GitHub] [spark] SparkQA commented on pull request #34638: [SPARK-37360][SQL] Support TimestampNTZ in JSON data source
Posted by GitBox <gi...@apache.org>.
SparkQA commented on pull request #34638:
URL: https://github.com/apache/spark/pull/34638#issuecomment-973732334
**[Test build #145435 has started](https://amplab.cs.berkeley.edu/jenkins/job/SparkPullRequestBuilder/145435/testReport)** for PR 34638 at commit [`55f9e3f`](https://github.com/apache/spark/commit/55f9e3f14847ee4bd35baf27157e45b40d7c9231).
--
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.
To unsubscribe, e-mail: reviews-unsubscribe@spark.apache.org
For queries about this service, please contact Infrastructure at:
users@infra.apache.org
---------------------------------------------------------------------
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 pull request #34638: [SPARK-37360][SQL] Support TimestampNTZ in JSON data source
Posted by GitBox <gi...@apache.org>.
AmplabJenkins removed a comment on pull request #34638:
URL: https://github.com/apache/spark/pull/34638#issuecomment-973794159
Refer to this link for build results (access rights to CI server needed):
https://amplab.cs.berkeley.edu/jenkins//job/SparkPullRequestBuilder-K8s/49907/
--
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.
To unsubscribe, e-mail: reviews-unsubscribe@spark.apache.org
For queries about this service, please contact Infrastructure at:
users@infra.apache.org
---------------------------------------------------------------------
To unsubscribe, e-mail: reviews-unsubscribe@spark.apache.org
For additional commands, e-mail: reviews-help@spark.apache.org
[GitHub] [spark] sadikovi commented on a change in pull request #34638: [SPARK-37360][SQL] Support TimestampNTZ in JSON data source
Posted by GitBox <gi...@apache.org>.
sadikovi commented on a change in pull request #34638:
URL: https://github.com/apache/spark/pull/34638#discussion_r762730267
##########
File path: sql/core/src/test/scala/org/apache/spark/sql/execution/datasources/json/JsonSuite.scala
##########
@@ -2746,6 +2746,182 @@ abstract class JsonSuite
}
}
+ test("SPARK-37360: Write and infer TIMESTAMP_NTZ values with a non-default pattern") {
+ withTempPath { path =>
+ val exp = spark.sql("select timestamp_ntz'2020-12-12 12:12:12' as col0")
+ exp.write
+ .option("timestampNTZFormat", "yyyy-MM-dd HH:mm:ss.SSSSSS")
+ .json(path.getAbsolutePath)
+
+ withSQLConf(SQLConf.TIMESTAMP_TYPE.key -> SQLConf.TimestampTypes.TIMESTAMP_NTZ.toString) {
+ val res = spark.read
+ .option("timestampNTZFormat", "yyyy-MM-dd HH:mm:ss.SSSSSS")
+ .option("inferTimestamp", "true")
+ .json(path.getAbsolutePath)
+
+ assert(res.dtypes === exp.dtypes)
+ checkAnswer(res, exp)
+ }
+ }
+ }
+
+ test("SPARK-37360: Write and infer TIMESTAMP_LTZ values with a non-default pattern") {
+ withTempPath { path =>
+ val exp = spark.sql("select timestamp_ltz'2020-12-12 12:12:12' as col0")
Review comment:
This is a good test case! Updated, thank you.
--
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.
To unsubscribe, e-mail: reviews-unsubscribe@spark.apache.org
For queries about this service, please contact Infrastructure at:
users@infra.apache.org
---------------------------------------------------------------------
To unsubscribe, e-mail: reviews-unsubscribe@spark.apache.org
For additional commands, e-mail: reviews-help@spark.apache.org
[GitHub] [spark] MaxGekk closed pull request #34638: [SPARK-37360][SQL] Support TimestampNTZ in JSON data source
Posted by GitBox <gi...@apache.org>.
MaxGekk closed pull request #34638:
URL: https://github.com/apache/spark/pull/34638
--
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.
To unsubscribe, e-mail: reviews-unsubscribe@spark.apache.org
For queries about this service, please contact Infrastructure at:
users@infra.apache.org
---------------------------------------------------------------------
To unsubscribe, e-mail: reviews-unsubscribe@spark.apache.org
For additional commands, e-mail: reviews-help@spark.apache.org
[GitHub] [spark] AmplabJenkins commented on pull request #34638: [SPARK-37360][SQL] Support TimestampNTZ in JSON data source
Posted by GitBox <gi...@apache.org>.
AmplabJenkins commented on pull request #34638:
URL: https://github.com/apache/spark/pull/34638#issuecomment-972608648
Refer to this link for build results (access rights to CI server needed):
https://amplab.cs.berkeley.edu/jenkins//job/SparkPullRequestBuilder/145360/
--
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.
To unsubscribe, e-mail: reviews-unsubscribe@spark.apache.org
For queries about this service, please contact Infrastructure at:
users@infra.apache.org
---------------------------------------------------------------------
To unsubscribe, e-mail: reviews-unsubscribe@spark.apache.org
For additional commands, e-mail: reviews-help@spark.apache.org
[GitHub] [spark] AmplabJenkins commented on pull request #34638: [SPARK-37360][SQL] Support TimestampNTZ in JSON data source
Posted by GitBox <gi...@apache.org>.
AmplabJenkins commented on pull request #34638:
URL: https://github.com/apache/spark/pull/34638#issuecomment-973830074
Refer to this link for build results (access rights to CI server needed):
https://amplab.cs.berkeley.edu/jenkins//job/SparkPullRequestBuilder/145435/
--
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.
To unsubscribe, e-mail: reviews-unsubscribe@spark.apache.org
For queries about this service, please contact Infrastructure at:
users@infra.apache.org
---------------------------------------------------------------------
To unsubscribe, e-mail: reviews-unsubscribe@spark.apache.org
For additional commands, e-mail: reviews-help@spark.apache.org
[GitHub] [spark] SparkQA commented on pull request #34638: [SPARK-37360][SQL] Support TimestampNTZ in JSON data source
Posted by GitBox <gi...@apache.org>.
SparkQA commented on pull request #34638:
URL: https://github.com/apache/spark/pull/34638#issuecomment-986685899
**[Test build #145940 has finished](https://amplab.cs.berkeley.edu/jenkins/job/SparkPullRequestBuilder/145940/testReport)** for PR 34638 at commit [`a626c9d`](https://github.com/apache/spark/commit/a626c9d15cef85c3ef523a9bec7fa09c214f3ee1).
* 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.
To unsubscribe, e-mail: reviews-unsubscribe@spark.apache.org
For queries about this service, please contact Infrastructure at:
users@infra.apache.org
---------------------------------------------------------------------
To unsubscribe, e-mail: reviews-unsubscribe@spark.apache.org
For additional commands, e-mail: reviews-help@spark.apache.org
[GitHub] [spark] SparkQA commented on pull request #34638: [SPARK-37360][SQL] Support TimestampNTZ in JSON data source
Posted by GitBox <gi...@apache.org>.
SparkQA commented on pull request #34638:
URL: https://github.com/apache/spark/pull/34638#issuecomment-986485140
**[Test build #145940 has started](https://amplab.cs.berkeley.edu/jenkins/job/SparkPullRequestBuilder/145940/testReport)** for PR 34638 at commit [`a626c9d`](https://github.com/apache/spark/commit/a626c9d15cef85c3ef523a9bec7fa09c214f3ee1).
--
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.
To unsubscribe, e-mail: reviews-unsubscribe@spark.apache.org
For queries about this service, please contact Infrastructure at:
users@infra.apache.org
---------------------------------------------------------------------
To unsubscribe, e-mail: reviews-unsubscribe@spark.apache.org
For additional commands, e-mail: reviews-help@spark.apache.org
[GitHub] [spark] AmplabJenkins commented on pull request #34638: [SPARK-37360][SQL] Support TimestampNTZ in JSON data source
Posted by GitBox <gi...@apache.org>.
AmplabJenkins commented on pull request #34638:
URL: https://github.com/apache/spark/pull/34638#issuecomment-985192214
Refer to this link for build results (access rights to CI server needed):
https://amplab.cs.berkeley.edu/jenkins//job/SparkPullRequestBuilder/145873/
--
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.
To unsubscribe, e-mail: reviews-unsubscribe@spark.apache.org
For queries about this service, please contact Infrastructure at:
users@infra.apache.org
---------------------------------------------------------------------
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 pull request #34638: [SPARK-37360][SQL] Support TimestampNTZ in JSON data source
Posted by GitBox <gi...@apache.org>.
AmplabJenkins removed a comment on pull request #34638:
URL: https://github.com/apache/spark/pull/34638#issuecomment-985207699
Refer to this link for build results (access rights to CI server needed):
https://amplab.cs.berkeley.edu/jenkins//job/SparkPullRequestBuilder/145874/
--
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.
To unsubscribe, e-mail: reviews-unsubscribe@spark.apache.org
For queries about this service, please contact Infrastructure at:
users@infra.apache.org
---------------------------------------------------------------------
To unsubscribe, e-mail: reviews-unsubscribe@spark.apache.org
For additional commands, e-mail: reviews-help@spark.apache.org
[GitHub] [spark] MaxGekk commented on a change in pull request #34638: [SPARK-37360][SQL] Support TimestampNTZ in JSON data source
Posted by GitBox <gi...@apache.org>.
MaxGekk commented on a change in pull request #34638:
URL: https://github.com/apache/spark/pull/34638#discussion_r761659489
##########
File path: sql/core/src/test/scala/org/apache/spark/sql/execution/datasources/json/JsonSuite.scala
##########
@@ -2746,6 +2746,182 @@ abstract class JsonSuite
}
}
+ test("SPARK-37360: Write and infer TIMESTAMP_NTZ values with a non-default pattern") {
+ withTempPath { path =>
+ val exp = spark.sql("select timestamp_ntz'2020-12-12 12:12:12' as col0")
Review comment:
It is a dataset/dataframe not an expression, just in case.
##########
File path: sql/catalyst/src/main/scala/org/apache/spark/sql/catalyst/json/JsonInferSchema.scala
##########
@@ -144,6 +150,9 @@ private[sql] class JsonInferSchema(options: JSONOptions) extends Serializable {
}
if (options.prefersDecimal && decimalTry.isDefined) {
decimalTry.get
+ } else if (options.inferTimestamp &&
Review comment:
Could you adjust the comment for inferTimestamp and mention the ntz type:
https://github.com/apache/spark/blob/1235bd29f087db834777cb9fc4c53a12e7f7d6b3/sql/catalyst/src/main/scala/org/apache/spark/sql/catalyst/json/JSONOptions.scala#L141
--
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.
To unsubscribe, e-mail: reviews-unsubscribe@spark.apache.org
For queries about this service, please contact Infrastructure at:
users@infra.apache.org
---------------------------------------------------------------------
To unsubscribe, e-mail: reviews-unsubscribe@spark.apache.org
For additional commands, e-mail: reviews-help@spark.apache.org
[GitHub] [spark] SparkQA commented on pull request #34638: [SPARK-37360][SQL] Support TimestampNTZ in JSON data source
Posted by GitBox <gi...@apache.org>.
SparkQA commented on pull request #34638:
URL: https://github.com/apache/spark/pull/34638#issuecomment-985162985
Kubernetes integration test starting
URL: https://amplab.cs.berkeley.edu/jenkins/job/SparkPullRequestBuilder-K8s/50349/
--
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.
To unsubscribe, e-mail: reviews-unsubscribe@spark.apache.org
For queries about this service, please contact Infrastructure at:
users@infra.apache.org
---------------------------------------------------------------------
To unsubscribe, e-mail: reviews-unsubscribe@spark.apache.org
For additional commands, e-mail: reviews-help@spark.apache.org
[GitHub] [spark] SparkQA commented on pull request #34638: [SPARK-37360][SQL] Support TimestampNTZ in JSON data source
Posted by GitBox <gi...@apache.org>.
SparkQA commented on pull request #34638:
URL: https://github.com/apache/spark/pull/34638#issuecomment-985180068
Kubernetes integration test status failure
URL: https://amplab.cs.berkeley.edu/jenkins/job/SparkPullRequestBuilder-K8s/50348/
--
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.
To unsubscribe, e-mail: reviews-unsubscribe@spark.apache.org
For queries about this service, please contact Infrastructure at:
users@infra.apache.org
---------------------------------------------------------------------
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 pull request #34638: [SPARK-37360][SQL] Support TimestampNTZ in JSON data source
Posted by GitBox <gi...@apache.org>.
SparkQA removed a comment on pull request #34638:
URL: https://github.com/apache/spark/pull/34638#issuecomment-973585760
**[Test build #145418 has started](https://amplab.cs.berkeley.edu/jenkins/job/SparkPullRequestBuilder/145418/testReport)** for PR 34638 at commit [`522f7de`](https://github.com/apache/spark/commit/522f7de3f1323c17f613d78701d84754762eccf3).
--
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.
To unsubscribe, e-mail: reviews-unsubscribe@spark.apache.org
For queries about this service, please contact Infrastructure at:
users@infra.apache.org
---------------------------------------------------------------------
To unsubscribe, e-mail: reviews-unsubscribe@spark.apache.org
For additional commands, e-mail: reviews-help@spark.apache.org
[GitHub] [spark] SparkQA commented on pull request #34638: [SPARK-37360][SQL] Support TimestampNTZ in JSON data source
Posted by GitBox <gi...@apache.org>.
SparkQA commented on pull request #34638:
URL: https://github.com/apache/spark/pull/34638#issuecomment-973769012
Kubernetes integration test starting
URL: https://amplab.cs.berkeley.edu/jenkins/job/SparkPullRequestBuilder-K8s/49907/
--
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.
To unsubscribe, e-mail: reviews-unsubscribe@spark.apache.org
For queries about this service, please contact Infrastructure at:
users@infra.apache.org
---------------------------------------------------------------------
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 pull request #34638: [SPARK-37360][SQL] Support TimestampNTZ in JSON data source
Posted by GitBox <gi...@apache.org>.
AmplabJenkins removed a comment on pull request #34638:
URL: https://github.com/apache/spark/pull/34638#issuecomment-973728749
Refer to this link for build results (access rights to CI server needed):
https://amplab.cs.berkeley.edu/jenkins//job/SparkPullRequestBuilder-K8s/49900/
--
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.
To unsubscribe, e-mail: reviews-unsubscribe@spark.apache.org
For queries about this service, please contact Infrastructure at:
users@infra.apache.org
---------------------------------------------------------------------
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 pull request #34638: [SPARK-37360][SQL] Support TimestampNTZ in JSON data source
Posted by GitBox <gi...@apache.org>.
AmplabJenkins removed a comment on pull request #34638:
URL: https://github.com/apache/spark/pull/34638#issuecomment-973648330
Refer to this link for build results (access rights to CI server needed):
https://amplab.cs.berkeley.edu/jenkins//job/SparkPullRequestBuilder/145418/
--
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.
To unsubscribe, e-mail: reviews-unsubscribe@spark.apache.org
For queries about this service, please contact Infrastructure at:
users@infra.apache.org
---------------------------------------------------------------------
To unsubscribe, e-mail: reviews-unsubscribe@spark.apache.org
For additional commands, e-mail: reviews-help@spark.apache.org
[GitHub] [spark] AmplabJenkins commented on pull request #34638: [SPARK-37360][SQL] Support TimestampNTZ in JSON data source
Posted by GitBox <gi...@apache.org>.
AmplabJenkins commented on pull request #34638:
URL: https://github.com/apache/spark/pull/34638#issuecomment-973729568
Refer to this link for build results (access rights to CI server needed):
https://amplab.cs.berkeley.edu/jenkins//job/SparkPullRequestBuilder/145428/
--
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.
To unsubscribe, e-mail: reviews-unsubscribe@spark.apache.org
For queries about this service, please contact Infrastructure at:
users@infra.apache.org
---------------------------------------------------------------------
To unsubscribe, e-mail: reviews-unsubscribe@spark.apache.org
For additional commands, e-mail: reviews-help@spark.apache.org
[GitHub] [spark] SparkQA commented on pull request #34638: [SPARK-37360][SQL] Support TimestampNTZ in JSON data source
Posted by GitBox <gi...@apache.org>.
SparkQA commented on pull request #34638:
URL: https://github.com/apache/spark/pull/34638#issuecomment-985144314
**[Test build #145874 has started](https://amplab.cs.berkeley.edu/jenkins/job/SparkPullRequestBuilder/145874/testReport)** for PR 34638 at commit [`5fd0dbe`](https://github.com/apache/spark/commit/5fd0dbe1c96991702448308f82e9cbc7012ab806).
--
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.
To unsubscribe, e-mail: reviews-unsubscribe@spark.apache.org
For queries about this service, please contact Infrastructure at:
users@infra.apache.org
---------------------------------------------------------------------
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 pull request #34638: [SPARK-37360][SQL] Support TimestampNTZ in JSON data source
Posted by GitBox <gi...@apache.org>.
AmplabJenkins removed a comment on pull request #34638:
URL: https://github.com/apache/spark/pull/34638#issuecomment-985143508
Refer to this link for build results (access rights to CI server needed):
https://amplab.cs.berkeley.edu/jenkins//job/SparkPullRequestBuilder/145872/
--
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.
To unsubscribe, e-mail: reviews-unsubscribe@spark.apache.org
For queries about this service, please contact Infrastructure at:
users@infra.apache.org
---------------------------------------------------------------------
To unsubscribe, e-mail: reviews-unsubscribe@spark.apache.org
For additional commands, e-mail: reviews-help@spark.apache.org
[GitHub] [spark] SparkQA commented on pull request #34638: [SPARK-37360][SQL] Support TimestampNTZ in JSON data source
Posted by GitBox <gi...@apache.org>.
SparkQA commented on pull request #34638:
URL: https://github.com/apache/spark/pull/34638#issuecomment-985176202
Kubernetes integration test status failure
URL: https://amplab.cs.berkeley.edu/jenkins/job/SparkPullRequestBuilder-K8s/50347/
--
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.
To unsubscribe, e-mail: reviews-unsubscribe@spark.apache.org
For queries about this service, please contact Infrastructure at:
users@infra.apache.org
---------------------------------------------------------------------
To unsubscribe, e-mail: reviews-unsubscribe@spark.apache.org
For additional commands, e-mail: reviews-help@spark.apache.org
[GitHub] [spark] AmplabJenkins commented on pull request #34638: [SPARK-37360][SQL] Support TimestampNTZ in JSON data source
Posted by GitBox <gi...@apache.org>.
AmplabJenkins commented on pull request #34638:
URL: https://github.com/apache/spark/pull/34638#issuecomment-986556774
Refer to this link for build results (access rights to CI server needed):
https://amplab.cs.berkeley.edu/jenkins//job/SparkPullRequestBuilder-K8s/50416/
--
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.
To unsubscribe, e-mail: reviews-unsubscribe@spark.apache.org
For queries about this service, please contact Infrastructure at:
users@infra.apache.org
---------------------------------------------------------------------
To unsubscribe, e-mail: reviews-unsubscribe@spark.apache.org
For additional commands, e-mail: reviews-help@spark.apache.org
[GitHub] [spark] SparkQA commented on pull request #34638: [SPARK-37360][SQL] Support TimestampNTZ in JSON data source
Posted by GitBox <gi...@apache.org>.
SparkQA commented on pull request #34638:
URL: https://github.com/apache/spark/pull/34638#issuecomment-986514121
Kubernetes integration test starting
URL: https://amplab.cs.berkeley.edu/jenkins/job/SparkPullRequestBuilder-K8s/50416/
--
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.
To unsubscribe, e-mail: reviews-unsubscribe@spark.apache.org
For queries about this service, please contact Infrastructure at:
users@infra.apache.org
---------------------------------------------------------------------
To unsubscribe, e-mail: reviews-unsubscribe@spark.apache.org
For additional commands, e-mail: reviews-help@spark.apache.org
[GitHub] [spark] MaxGekk commented on pull request #34638: [SPARK-37360][SQL] Support TimestampNTZ in JSON data source
Posted by GitBox <gi...@apache.org>.
MaxGekk commented on pull request #34638:
URL: https://github.com/apache/spark/pull/34638#issuecomment-986543180
+1, LGTM. Merging to master.
Thank you, @sadikovi and @gengliangwang for review.
--
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.
To unsubscribe, e-mail: reviews-unsubscribe@spark.apache.org
For queries about this service, please contact Infrastructure at:
users@infra.apache.org
---------------------------------------------------------------------
To unsubscribe, e-mail: reviews-unsubscribe@spark.apache.org
For additional commands, e-mail: reviews-help@spark.apache.org
[GitHub] [spark] AmplabJenkins commented on pull request #34638: [SPARK-37360][SQL] Support TimestampNTZ in JSON data source
Posted by GitBox <gi...@apache.org>.
AmplabJenkins commented on pull request #34638:
URL: https://github.com/apache/spark/pull/34638#issuecomment-974365091
Can one of the admins verify this patch?
--
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.
To unsubscribe, e-mail: reviews-unsubscribe@spark.apache.org
For queries about this service, please contact Infrastructure at:
users@infra.apache.org
---------------------------------------------------------------------
To unsubscribe, e-mail: reviews-unsubscribe@spark.apache.org
For additional commands, e-mail: reviews-help@spark.apache.org
[GitHub] [spark] SparkQA commented on pull request #34638: [SPARK-37360][SQL] Support TimestampNTZ in JSON data source
Posted by GitBox <gi...@apache.org>.
SparkQA commented on pull request #34638:
URL: https://github.com/apache/spark/pull/34638#issuecomment-973674607
Kubernetes integration test status failure
URL: https://amplab.cs.berkeley.edu/jenkins/job/SparkPullRequestBuilder-K8s/49892/
--
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.
To unsubscribe, e-mail: reviews-unsubscribe@spark.apache.org
For queries about this service, please contact Infrastructure at:
users@infra.apache.org
---------------------------------------------------------------------
To unsubscribe, e-mail: reviews-unsubscribe@spark.apache.org
For additional commands, e-mail: reviews-help@spark.apache.org
[GitHub] [spark] AmplabJenkins commented on pull request #34638: [SPARK-37360][SQL] Support TimestampNTZ in JSON data source
Posted by GitBox <gi...@apache.org>.
AmplabJenkins commented on pull request #34638:
URL: https://github.com/apache/spark/pull/34638#issuecomment-973648330
Refer to this link for build results (access rights to CI server needed):
https://amplab.cs.berkeley.edu/jenkins//job/SparkPullRequestBuilder/145418/
--
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.
To unsubscribe, e-mail: reviews-unsubscribe@spark.apache.org
For queries about this service, please contact Infrastructure at:
users@infra.apache.org
---------------------------------------------------------------------
To unsubscribe, e-mail: reviews-unsubscribe@spark.apache.org
For additional commands, e-mail: reviews-help@spark.apache.org
[GitHub] [spark] SparkQA commented on pull request #34638: [SPARK-37360][SQL] Support TimestampNTZ in JSON data source
Posted by GitBox <gi...@apache.org>.
SparkQA commented on pull request #34638:
URL: https://github.com/apache/spark/pull/34638#issuecomment-973647066
Kubernetes integration test starting
URL: https://amplab.cs.berkeley.edu/jenkins/job/SparkPullRequestBuilder-K8s/49892/
--
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.
To unsubscribe, e-mail: reviews-unsubscribe@spark.apache.org
For queries about this service, please contact Infrastructure at:
users@infra.apache.org
---------------------------------------------------------------------
To unsubscribe, e-mail: reviews-unsubscribe@spark.apache.org
For additional commands, e-mail: reviews-help@spark.apache.org
[GitHub] [spark] AmplabJenkins commented on pull request #34638: [SPARK-37360][SQL] Support TimestampNTZ in JSON data source
Posted by GitBox <gi...@apache.org>.
AmplabJenkins commented on pull request #34638:
URL: https://github.com/apache/spark/pull/34638#issuecomment-985143508
Refer to this link for build results (access rights to CI server needed):
https://amplab.cs.berkeley.edu/jenkins//job/SparkPullRequestBuilder/145872/
--
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.
To unsubscribe, e-mail: reviews-unsubscribe@spark.apache.org
For queries about this service, please contact Infrastructure at:
users@infra.apache.org
---------------------------------------------------------------------
To unsubscribe, e-mail: reviews-unsubscribe@spark.apache.org
For additional commands, e-mail: reviews-help@spark.apache.org
[GitHub] [spark] SparkQA commented on pull request #34638: [SPARK-37360][SQL] Support TimestampNTZ in JSON data source
Posted by GitBox <gi...@apache.org>.
SparkQA commented on pull request #34638:
URL: https://github.com/apache/spark/pull/34638#issuecomment-985159539
Kubernetes integration test starting
URL: https://amplab.cs.berkeley.edu/jenkins/job/SparkPullRequestBuilder-K8s/50347/
--
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.
To unsubscribe, e-mail: reviews-unsubscribe@spark.apache.org
For queries about this service, please contact Infrastructure at:
users@infra.apache.org
---------------------------------------------------------------------
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 pull request #34638: [SPARK-37360][SQL] Support TimestampNTZ in JSON data source
Posted by GitBox <gi...@apache.org>.
AmplabJenkins removed a comment on pull request #34638:
URL: https://github.com/apache/spark/pull/34638#issuecomment-985186470
--
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.
To unsubscribe, e-mail: reviews-unsubscribe@spark.apache.org
For queries about this service, please contact Infrastructure at:
users@infra.apache.org
---------------------------------------------------------------------
To unsubscribe, e-mail: reviews-unsubscribe@spark.apache.org
For additional commands, e-mail: reviews-help@spark.apache.org
[GitHub] [spark] SparkQA commented on pull request #34638: [SPARK-37360][SQL] Support TimestampNTZ in JSON data source
Posted by GitBox <gi...@apache.org>.
SparkQA commented on pull request #34638:
URL: https://github.com/apache/spark/pull/34638#issuecomment-985212810
**[Test build #145883 has started](https://amplab.cs.berkeley.edu/jenkins/job/SparkPullRequestBuilder/145883/testReport)** for PR 34638 at commit [`50690e9`](https://github.com/apache/spark/commit/50690e9a3d51cbc6a35e0bb6efdd229bb01db6a2).
--
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.
To unsubscribe, e-mail: reviews-unsubscribe@spark.apache.org
For queries about this service, please contact Infrastructure at:
users@infra.apache.org
---------------------------------------------------------------------
To unsubscribe, e-mail: reviews-unsubscribe@spark.apache.org
For additional commands, e-mail: reviews-help@spark.apache.org
[GitHub] [spark] sadikovi commented on a change in pull request #34638: [SPARK-37360][SQL] Support TimestampNTZ in JSON data source
Posted by GitBox <gi...@apache.org>.
sadikovi commented on a change in pull request #34638:
URL: https://github.com/apache/spark/pull/34638#discussion_r761687305
##########
File path: sql/catalyst/src/main/scala/org/apache/spark/sql/catalyst/json/JsonInferSchema.scala
##########
@@ -144,6 +150,9 @@ private[sql] class JsonInferSchema(options: JSONOptions) extends Serializable {
}
if (options.prefersDecimal && decimalTry.isDefined) {
decimalTry.get
+ } else if (options.inferTimestamp &&
Review comment:
Yes, sure. I will update, thanks for pointing it out!
--
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.
To unsubscribe, e-mail: reviews-unsubscribe@spark.apache.org
For queries about this service, please contact Infrastructure at:
users@infra.apache.org
---------------------------------------------------------------------
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 pull request #34638: [SPARK-37360][SQL] Support TimestampNTZ in JSON data source
Posted by GitBox <gi...@apache.org>.
SparkQA removed a comment on pull request #34638:
URL: https://github.com/apache/spark/pull/34638#issuecomment-985212810
**[Test build #145883 has started](https://amplab.cs.berkeley.edu/jenkins/job/SparkPullRequestBuilder/145883/testReport)** for PR 34638 at commit [`50690e9`](https://github.com/apache/spark/commit/50690e9a3d51cbc6a35e0bb6efdd229bb01db6a2).
--
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.
To unsubscribe, e-mail: reviews-unsubscribe@spark.apache.org
For queries about this service, please contact Infrastructure at:
users@infra.apache.org
---------------------------------------------------------------------
To unsubscribe, e-mail: reviews-unsubscribe@spark.apache.org
For additional commands, e-mail: reviews-help@spark.apache.org
[GitHub] [spark] SparkQA commented on pull request #34638: [SPARK-37360][SQL] Support TimestampNTZ in JSON data source
Posted by GitBox <gi...@apache.org>.
SparkQA commented on pull request #34638:
URL: https://github.com/apache/spark/pull/34638#issuecomment-985163108
Kubernetes integration test starting
URL: https://amplab.cs.berkeley.edu/jenkins/job/SparkPullRequestBuilder-K8s/50348/
--
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.
To unsubscribe, e-mail: reviews-unsubscribe@spark.apache.org
For queries about this service, please contact Infrastructure at:
users@infra.apache.org
---------------------------------------------------------------------
To unsubscribe, e-mail: reviews-unsubscribe@spark.apache.org
For additional commands, e-mail: reviews-help@spark.apache.org
[GitHub] [spark] SparkQA commented on pull request #34638: [SPARK-37360][SQL] Support TimestampNTZ in JSON data source
Posted by GitBox <gi...@apache.org>.
SparkQA commented on pull request #34638:
URL: https://github.com/apache/spark/pull/34638#issuecomment-986555608
Kubernetes integration test status failure
URL: https://amplab.cs.berkeley.edu/jenkins/job/SparkPullRequestBuilder-K8s/50416/
--
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.
To unsubscribe, e-mail: reviews-unsubscribe@spark.apache.org
For queries about this service, please contact Infrastructure at:
users@infra.apache.org
---------------------------------------------------------------------
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 pull request #34638: [SPARK-37360][SQL] Support TimestampNTZ in JSON data source
Posted by GitBox <gi...@apache.org>.
SparkQA removed a comment on pull request #34638:
URL: https://github.com/apache/spark/pull/34638#issuecomment-986485140
**[Test build #145940 has started](https://amplab.cs.berkeley.edu/jenkins/job/SparkPullRequestBuilder/145940/testReport)** for PR 34638 at commit [`a626c9d`](https://github.com/apache/spark/commit/a626c9d15cef85c3ef523a9bec7fa09c214f3ee1).
--
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.
To unsubscribe, e-mail: reviews-unsubscribe@spark.apache.org
For queries about this service, please contact Infrastructure at:
users@infra.apache.org
---------------------------------------------------------------------
To unsubscribe, e-mail: reviews-unsubscribe@spark.apache.org
For additional commands, e-mail: reviews-help@spark.apache.org
[GitHub] [spark] SparkQA commented on pull request #34638: [SPARK-37360][SQL] Support TimestampNTZ in JSON data source
Posted by GitBox <gi...@apache.org>.
SparkQA commented on pull request #34638:
URL: https://github.com/apache/spark/pull/34638#issuecomment-973809002
**[Test build #145435 has finished](https://amplab.cs.berkeley.edu/jenkins/job/SparkPullRequestBuilder/145435/testReport)** for PR 34638 at commit [`55f9e3f`](https://github.com/apache/spark/commit/55f9e3f14847ee4bd35baf27157e45b40d7c9231).
* This patch **fails Spark unit 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.
To unsubscribe, e-mail: reviews-unsubscribe@spark.apache.org
For queries about this service, please contact Infrastructure at:
users@infra.apache.org
---------------------------------------------------------------------
To unsubscribe, e-mail: reviews-unsubscribe@spark.apache.org
For additional commands, e-mail: reviews-help@spark.apache.org
[GitHub] [spark] SparkQA commented on pull request #34638: [SPARK-37360][SQL] Support TimestampNTZ in JSON data source
Posted by GitBox <gi...@apache.org>.
SparkQA commented on pull request #34638:
URL: https://github.com/apache/spark/pull/34638#issuecomment-973585760
**[Test build #145418 has started](https://amplab.cs.berkeley.edu/jenkins/job/SparkPullRequestBuilder/145418/testReport)** for PR 34638 at commit [`522f7de`](https://github.com/apache/spark/commit/522f7de3f1323c17f613d78701d84754762eccf3).
--
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.
To unsubscribe, e-mail: reviews-unsubscribe@spark.apache.org
For queries about this service, please contact Infrastructure at:
users@infra.apache.org
---------------------------------------------------------------------
To unsubscribe, e-mail: reviews-unsubscribe@spark.apache.org
For additional commands, e-mail: reviews-help@spark.apache.org
[GitHub] [spark] SparkQA commented on pull request #34638: [SPARK-37360][SQL] Support TimestampNTZ in JSON data source
Posted by GitBox <gi...@apache.org>.
SparkQA commented on pull request #34638:
URL: https://github.com/apache/spark/pull/34638#issuecomment-973700272
Kubernetes integration test starting
URL: https://amplab.cs.berkeley.edu/jenkins/job/SparkPullRequestBuilder-K8s/49900/
--
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.
To unsubscribe, e-mail: reviews-unsubscribe@spark.apache.org
For queries about this service, please contact Infrastructure at:
users@infra.apache.org
---------------------------------------------------------------------
To unsubscribe, e-mail: reviews-unsubscribe@spark.apache.org
For additional commands, e-mail: reviews-help@spark.apache.org
[GitHub] [spark] SparkQA commented on pull request #34638: [SPARK-37360][SQL] Support TimestampNTZ in JSON data source
Posted by GitBox <gi...@apache.org>.
SparkQA commented on pull request #34638:
URL: https://github.com/apache/spark/pull/34638#issuecomment-972461642
**[Test build #145360 has started](https://amplab.cs.berkeley.edu/jenkins/job/SparkPullRequestBuilder/145360/testReport)** for PR 34638 at commit [`f9d097c`](https://github.com/apache/spark/commit/f9d097cd5b7be8f2d3befa2b372a654163c7229d).
--
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.
To unsubscribe, e-mail: reviews-unsubscribe@spark.apache.org
For queries about this service, please contact Infrastructure at:
users@infra.apache.org
---------------------------------------------------------------------
To unsubscribe, e-mail: reviews-unsubscribe@spark.apache.org
For additional commands, e-mail: reviews-help@spark.apache.org
[GitHub] [spark] SparkQA commented on pull request #34638: [SPARK-37360][SQL] Support TimestampNTZ in JSON data source
Posted by GitBox <gi...@apache.org>.
SparkQA commented on pull request #34638:
URL: https://github.com/apache/spark/pull/34638#issuecomment-985143489
**[Test build #145872 has finished](https://amplab.cs.berkeley.edu/jenkins/job/SparkPullRequestBuilder/145872/testReport)** for PR 34638 at commit [`412bb61`](https://github.com/apache/spark/commit/412bb61cd2ce4990a8fa3bda386a206c57a874d7).
* This patch **fails to build**.
* This patch merges cleanly.
* This patch adds the following public classes _(experimental)_:
* `class TimedeltaOps(DataTypeOps):`
* `class TimedeltaIndex(Index):`
* `class MissingPandasLikeTimedeltaIndex(MissingPandasLikeIndex):`
* `class SQLStringFormatter(string.Formatter):`
* `class UDFBasicProfiler(BasicProfiler):`
* `class CloudPickleSerializer(FramedSerializer):`
* `class DayTimeIntervalType(AtomicType):`
* `class DayTimeIntervalTypeConverter(object):`
* `class ExecutorPodsPollingSnapshotSource(`
* `class ExecutorPodsWatchSnapshotSource(`
* ` class AnsiCombinedTypeCoercionRule(rules: Seq[TypeCoercionRule]) extends`
* `case class RelationTimeTravel(`
* `case class AsOfTimestamp(timestamp: Long) extends TimeTravelSpec`
* `case class AsOfVersion(version: String) extends TimeTravelSpec`
* ` class CombinedTypeCoercionRule(rules: Seq[TypeCoercionRule]) extends TypeCoercionRule `
* `case class PrettyPythonUDF(`
* `case class UnclosedCommentProcessor(`
* `case class CreateTable(`
* `case class TableSpec(`
* `case class OptimizeSkewedJoin(ensureRequirements: EnsureRequirements)`
* ` // When this is enabled, this class does additional lookup on write operations (put/delete) to`
--
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.
To unsubscribe, e-mail: reviews-unsubscribe@spark.apache.org
For queries about this service, please contact Infrastructure at:
users@infra.apache.org
---------------------------------------------------------------------
To unsubscribe, e-mail: reviews-unsubscribe@spark.apache.org
For additional commands, e-mail: reviews-help@spark.apache.org
[GitHub] [spark] AmplabJenkins commented on pull request #34638: [SPARK-37360][SQL] Support TimestampNTZ in JSON data source
Posted by GitBox <gi...@apache.org>.
AmplabJenkins commented on pull request #34638:
URL: https://github.com/apache/spark/pull/34638#issuecomment-985207699
Refer to this link for build results (access rights to CI server needed):
https://amplab.cs.berkeley.edu/jenkins//job/SparkPullRequestBuilder/145874/
--
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.
To unsubscribe, e-mail: reviews-unsubscribe@spark.apache.org
For queries about this service, please contact Infrastructure at:
users@infra.apache.org
---------------------------------------------------------------------
To unsubscribe, e-mail: reviews-unsubscribe@spark.apache.org
For additional commands, e-mail: reviews-help@spark.apache.org
[GitHub] [spark] sadikovi commented on pull request #34638: [SPARK-37360][SQL] Support TimestampNTZ in JSON data source
Posted by GitBox <gi...@apache.org>.
sadikovi commented on pull request #34638:
URL: https://github.com/apache/spark/pull/34638#issuecomment-985212406
@gengliangwang @MaxGekk could you review the PR? Thank you.
--
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.
To unsubscribe, e-mail: reviews-unsubscribe@spark.apache.org
For queries about this service, please contact Infrastructure at:
users@infra.apache.org
---------------------------------------------------------------------
To unsubscribe, e-mail: reviews-unsubscribe@spark.apache.org
For additional commands, e-mail: reviews-help@spark.apache.org
[GitHub] [spark] AmplabJenkins commented on pull request #34638: [SPARK-37360][SQL] Support TimestampNTZ in JSON data source
Posted by GitBox <gi...@apache.org>.
AmplabJenkins commented on pull request #34638:
URL: https://github.com/apache/spark/pull/34638#issuecomment-985376204
Refer to this link for build results (access rights to CI server needed):
https://amplab.cs.berkeley.edu/jenkins//job/SparkPullRequestBuilder/145883/
--
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.
To unsubscribe, e-mail: reviews-unsubscribe@spark.apache.org
For queries about this service, please contact Infrastructure at:
users@infra.apache.org
---------------------------------------------------------------------
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 pull request #34638: [SPARK-37360][SQL] Support TimestampNTZ in JSON data source
Posted by GitBox <gi...@apache.org>.
AmplabJenkins removed a comment on pull request #34638:
URL: https://github.com/apache/spark/pull/34638#issuecomment-985376204
Refer to this link for build results (access rights to CI server needed):
https://amplab.cs.berkeley.edu/jenkins//job/SparkPullRequestBuilder/145883/
--
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.
To unsubscribe, e-mail: reviews-unsubscribe@spark.apache.org
For queries about this service, please contact Infrastructure at:
users@infra.apache.org
---------------------------------------------------------------------
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 pull request #34638: [SPARK-37360][SQL] Support TimestampNTZ in JSON data source
Posted by GitBox <gi...@apache.org>.
SparkQA removed a comment on pull request #34638:
URL: https://github.com/apache/spark/pull/34638#issuecomment-985142168
**[Test build #145873 has started](https://amplab.cs.berkeley.edu/jenkins/job/SparkPullRequestBuilder/145873/testReport)** for PR 34638 at commit [`2cdbb18`](https://github.com/apache/spark/commit/2cdbb18144c7352f8b8418e64bd7d3b06b32f5cc).
--
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.
To unsubscribe, e-mail: reviews-unsubscribe@spark.apache.org
For queries about this service, please contact Infrastructure at:
users@infra.apache.org
---------------------------------------------------------------------
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 pull request #34638: [SPARK-37360][SQL] Support TimestampNTZ in JSON data source
Posted by GitBox <gi...@apache.org>.
AmplabJenkins removed a comment on pull request #34638:
URL: https://github.com/apache/spark/pull/34638#issuecomment-985192214
Refer to this link for build results (access rights to CI server needed):
https://amplab.cs.berkeley.edu/jenkins//job/SparkPullRequestBuilder/145873/
--
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.
To unsubscribe, e-mail: reviews-unsubscribe@spark.apache.org
For queries about this service, please contact Infrastructure at:
users@infra.apache.org
---------------------------------------------------------------------
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 pull request #34638: [SPARK-37360][SQL] Support TimestampNTZ in JSON data source
Posted by GitBox <gi...@apache.org>.
SparkQA removed a comment on pull request #34638:
URL: https://github.com/apache/spark/pull/34638#issuecomment-985144314
**[Test build #145874 has started](https://amplab.cs.berkeley.edu/jenkins/job/SparkPullRequestBuilder/145874/testReport)** for PR 34638 at commit [`5fd0dbe`](https://github.com/apache/spark/commit/5fd0dbe1c96991702448308f82e9cbc7012ab806).
--
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.
To unsubscribe, e-mail: reviews-unsubscribe@spark.apache.org
For queries about this service, please contact Infrastructure at:
users@infra.apache.org
---------------------------------------------------------------------
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 pull request #34638: [SPARK-37360][SQL] Support TimestampNTZ in JSON data source
Posted by GitBox <gi...@apache.org>.
AmplabJenkins removed a comment on pull request #34638:
URL: https://github.com/apache/spark/pull/34638#issuecomment-985253937
Refer to this link for build results (access rights to CI server needed):
https://amplab.cs.berkeley.edu/jenkins//job/SparkPullRequestBuilder-K8s/50358/
--
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.
To unsubscribe, e-mail: reviews-unsubscribe@spark.apache.org
For queries about this service, please contact Infrastructure at:
users@infra.apache.org
---------------------------------------------------------------------
To unsubscribe, e-mail: reviews-unsubscribe@spark.apache.org
For additional commands, e-mail: reviews-help@spark.apache.org