You are viewing a plain text version of this content. The canonical link for it is here.
Posted to reviews@spark.apache.org by GitBox <gi...@apache.org> on 2020/06/16 13:57:54 UTC

[GitHub] [spark] MaxGekk opened a new pull request #28843: [SPARK-31710][SQL][FOLLOWUP] Replace CAST by TIMESTAMP_SECONDS in benchmarks

MaxGekk opened a new pull request #28843:
URL: https://github.com/apache/spark/pull/28843


   ### What changes were proposed in this pull request?
   Replace `CAST(... AS TIMESTAMP` by `TIMESTAMP_SECONDS` in the following benchmarks:
   - ExtractBenchmark
   - DateTimeBenchmark
   - FilterPushdownBenchmark
   - InExpressionBenchmark
   
   ### Why are the changes needed?
   The benchmarks fail w/o the changes:
   ```
   [info] Running benchmark: datetime +/- interval
   [info]   Running case: date + interval(m)
   [error] Exception in thread "main" org.apache.spark.sql.AnalysisException: cannot resolve 'CAST(`id` AS TIMESTAMP)' due to data type mismatch: cannot cast bigint to timestamp,you can enable the casting by setting spark.sql.legacy.allowCastNumericToTimestamp to true,but we strongly recommend using function TIMESTAMP_SECONDS/TIMESTAMP_MILLIS/TIMESTAMP_MICROS instead.; line 1 pos 5;
   [error] 'Project [(cast(cast(id#0L as timestamp) as date) + 1 months) AS (CAST(CAST(id AS TIMESTAMP) AS DATE) + INTERVAL '1 months')#2]
   [error] +- Range (0, 10000000, step=1, splits=Some(1))
   ```
   
   ### Does this PR introduce _any_ user-facing change?
   No
   
   ### How was this patch tested?
   By running the affected benchmarks.
   


----------------------------------------------------------------
This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.

For queries about this service, please contact Infrastructure at:
users@infra.apache.org



---------------------------------------------------------------------
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 #28843: [SPARK-31710][SQL][FOLLOWUP] Replace CAST by TIMESTAMP_SECONDS in benchmarks

Posted by GitBox <gi...@apache.org>.
AmplabJenkins removed a comment on pull request #28843:
URL: https://github.com/apache/spark/pull/28843#issuecomment-644946940






----------------------------------------------------------------
This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.

For queries about this service, please contact Infrastructure at:
users@infra.apache.org



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


[GitHub] [spark] cloud-fan closed pull request #28843: [SPARK-31710][SQL][FOLLOWUP] Replace CAST by TIMESTAMP_SECONDS in benchmarks

Posted by GitBox <gi...@apache.org>.
cloud-fan closed pull request #28843:
URL: https://github.com/apache/spark/pull/28843


   


----------------------------------------------------------------
This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.

For queries about this service, please contact Infrastructure at:
users@infra.apache.org



---------------------------------------------------------------------
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 #28843: [SPARK-31710][SQL][FOLLOWUP] Replace CAST by TIMESTAMP_SECONDS in benchmarks

Posted by GitBox <gi...@apache.org>.
SparkQA commented on pull request #28843:
URL: https://github.com/apache/spark/pull/28843#issuecomment-644785511


   **[Test build #124125 has started](https://amplab.cs.berkeley.edu/jenkins/job/SparkPullRequestBuilder/124125/testReport)** for PR 28843 at commit [`97b5f97`](https://github.com/apache/spark/commit/97b5f97e8ad10e07781f2797ea2f581129a93cf0).


----------------------------------------------------------------
This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.

For queries about this service, please contact Infrastructure at:
users@infra.apache.org



---------------------------------------------------------------------
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 #28843: [SPARK-31710][SQL][FOLLOWUP] Replace CAST by TIMESTAMP_SECONDS in benchmarks

Posted by GitBox <gi...@apache.org>.
AmplabJenkins commented on pull request #28843:
URL: https://github.com/apache/spark/pull/28843#issuecomment-644786372






----------------------------------------------------------------
This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.

For queries about this service, please contact Infrastructure at:
users@infra.apache.org



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


[GitHub] [spark] cloud-fan commented on pull request #28843: [SPARK-31710][SQL][FOLLOWUP] Replace CAST by TIMESTAMP_SECONDS in benchmarks

Posted by GitBox <gi...@apache.org>.
cloud-fan commented on pull request #28843:
URL: https://github.com/apache/spark/pull/28843#issuecomment-644787724


   thanks for fixing it! It's benchmark only so we don't need to wait for jenkins.
   
   merging to master!


----------------------------------------------------------------
This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.

For queries about this service, please contact Infrastructure at:
users@infra.apache.org



---------------------------------------------------------------------
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 #28843: [SPARK-31710][SQL][FOLLOWUP] Replace CAST by TIMESTAMP_SECONDS in benchmarks

Posted by GitBox <gi...@apache.org>.
AmplabJenkins removed a comment on pull request #28843:
URL: https://github.com/apache/spark/pull/28843#issuecomment-644786372






----------------------------------------------------------------
This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.

For queries about this service, please contact Infrastructure at:
users@infra.apache.org



---------------------------------------------------------------------
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 #28843: [SPARK-31710][SQL][FOLLOWUP] Replace CAST by TIMESTAMP_SECONDS in benchmarks

Posted by GitBox <gi...@apache.org>.
SparkQA commented on pull request #28843:
URL: https://github.com/apache/spark/pull/28843#issuecomment-644946054


   **[Test build #124125 has finished](https://amplab.cs.berkeley.edu/jenkins/job/SparkPullRequestBuilder/124125/testReport)** for PR 28843 at commit [`97b5f97`](https://github.com/apache/spark/commit/97b5f97e8ad10e07781f2797ea2f581129a93cf0).
    * This patch passes all tests.
    * This patch merges cleanly.
    * This patch adds no public classes.


----------------------------------------------------------------
This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.

For queries about this service, please contact Infrastructure at:
users@infra.apache.org



---------------------------------------------------------------------
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 #28843: [SPARK-31710][SQL][FOLLOWUP] Replace CAST by TIMESTAMP_SECONDS in benchmarks

Posted by GitBox <gi...@apache.org>.
SparkQA removed a comment on pull request #28843:
URL: https://github.com/apache/spark/pull/28843#issuecomment-644785511


   **[Test build #124125 has started](https://amplab.cs.berkeley.edu/jenkins/job/SparkPullRequestBuilder/124125/testReport)** for PR 28843 at commit [`97b5f97`](https://github.com/apache/spark/commit/97b5f97e8ad10e07781f2797ea2f581129a93cf0).


----------------------------------------------------------------
This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.

For queries about this service, please contact Infrastructure at:
users@infra.apache.org



---------------------------------------------------------------------
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 #28843: [SPARK-31710][SQL][FOLLOWUP] Replace CAST by TIMESTAMP_SECONDS in benchmarks

Posted by GitBox <gi...@apache.org>.
AmplabJenkins commented on pull request #28843:
URL: https://github.com/apache/spark/pull/28843#issuecomment-644946940






----------------------------------------------------------------
This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.

For queries about this service, please contact Infrastructure at:
users@infra.apache.org



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