Github user chenghao-intel commented on the pull request:

    https://github.com/apache/spark/pull/2589#issuecomment-58293140
  
    Sorry for late reply.
    @rxin  `sc.sparkContext.defaultMinPartitions` is 2 in the unit test, and 
probably always be 2 in a real cluster deployment.
    
    @marmbrus some of the hive unit test will use `SORT BY` instead of `ORDER 
BY` in `SELECT` clause (e.g. `ctas.q`), different split strategies may lead to 
different result for Hive and SparkSQL.
    
    I agree we should respect the configuration `mapred.map.tasks`. which 
change below do you prefer?
    ```
    private val _minSplitsPerRDD = math.min(
    sc.hiveconf.getInt("mapred.map.tasks", 1), 
sc.sparkContext.defaultMinPartitions)
    ```
    ```
    private val _minSplitsPerRDD = sc.hiveconf.getInt("mapred.map.tasks", 1)
    ```


---
If your project is set up for it, you can reply to this email and have your
reply appear on GitHub as well. If your project does not have this feature
enabled and wishes so, or if the feature is enabled but not working, please
contact infrastructure at [email protected] or file a JIRA ticket
with INFRA.
---

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

Reply via email to