[ 
https://issues.apache.org/jira/browse/SPARK-23185?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=16717956#comment-16717956
 ] 

ASF GitHub Bot commented on SPARK-23185:
----------------------------------------

srowen commented on issue #20356: [SPARK-23185][SQL] Make the configuration 
"spark.default.parallelism" can be changed on each SQL session to decrease 
empty files
URL: https://github.com/apache/spark/pull/20356#issuecomment-446350850
 
 
   Yeah this isn't the right fix. It's 'default' parallelism after all. This 
would potentially increase the number of output files in other situations, and 
also create empty files, like when there are fewer rows than default 
parallelism.

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


> Make the configuration "spark.default.parallelism" can be changed on each SQL 
> session to decrease empty files
> -------------------------------------------------------------------------------------------------------------
>
>                 Key: SPARK-23185
>                 URL: https://issues.apache.org/jira/browse/SPARK-23185
>             Project: Spark
>          Issue Type: Bug
>          Components: SQL
>    Affects Versions: 2.2.1
>            Reporter: LvDongrong
>            Priority: Minor
>
> When execute "insert into ... values ...", many empty files will be 
> generated.We can change the configuration "spark.default.parallelism" to 
> decrease the number of empty files.But there are many occasions that we want 
> to chang the configuration during each session so as not to influence other 
> sql sentences, like we may use thrift server to excute many sql sentences on 
> a SQL session.



--
This message was sent by Atlassian JIRA
(v7.6.3#76005)

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

Reply via email to