MaxGekk opened a new pull request #25988: [SPARK-29313][SQL] Fix failure on 
writing to `noop` in benchmarks
URL: https://github.com/apache/spark/pull/25988
 
 
   ### What changes were proposed in this pull request?
   In the PR, I propose to specify the save mode explicitly while writing to 
the `noop` datasource in benchmarks. I set `Overwrite` mode in the following 
benchmarks:
   - JsonBenchmark
   - CSVBenchmark
   - UDFBenchmark
   - MakeDateTimeBenchmark
   - ExtractBenchmark
   - DateTimeBenchmark
   - NestedSchemaPruningBenchmark
   
   ### Why are the changes needed?
   Otherwise writing to `noop` fails with:
   ```
   [error] Exception in thread "main" org.apache.spark.sql.AnalysisException: 
TableProvider implementation noop cannot be written with ErrorIfExists mode, 
please use Append or Overwrite modes instead.;
   [error]      at 
org.apache.spark.sql.DataFrameWriter.save(DataFrameWriter.scala:284)
   ```
   most likely due to https://github.com/apache/spark/pull/25876
   
   ### Does this PR introduce any user-facing change?
   No
   
   ### How was this patch tested?
   I generated results of `ExtractBenchmark` via the command:
   ```
   SPARK_GENERATE_BENCHMARK_FILES=1 build/sbt "sql/test:runMain 
org.apache.spark.sql.execution.benchmark.ExtractBenchmark"
   ```
   

----------------------------------------------------------------
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:
[email protected]


With regards,
Apache Git Services

---------------------------------------------------------------------
To unsubscribe, e-mail: [email protected]
For additional commands, e-mail: [email protected]

Reply via email to