Skip to content
Snippets Groups Projects
  • Cheng Lian's avatar
    a6cd3110
    [SPARK-2678][Core][SQL] A workaround for SPARK-2678 · a6cd3110
    Cheng Lian authored
    JIRA issues:
    
    - Main: [SPARK-2678](https://issues.apache.org/jira/browse/SPARK-2678)
    - Related: [SPARK-2874](https://issues.apache.org/jira/browse/SPARK-2874)
    
    Related PR:
    
    - #1715
    
    This PR is both a fix for SPARK-2874 and a workaround for SPARK-2678. Fixing SPARK-2678 completely requires some API level changes that need further discussion, and we decided not to include it in Spark 1.1 release. As currently SPARK-2678 only affects Spark SQL scripts, this workaround is enough for Spark 1.1. Command line option handling logic in bash scripts looks somewhat dirty and duplicated, but it helps to provide a cleaner user interface as well as retain full downward compatibility for now.
    
    Author: Cheng Lian <lian.cs.zju@gmail.com>
    
    Closes #1801 from liancheng/spark-2874 and squashes the following commits:
    
    8045d7a [Cheng Lian] Make sure test suites pass
    8493a9e [Cheng Lian] Using eval to retain quoted arguments
    aed523f [Cheng Lian] Fixed typo in bin/spark-sql
    f12a0b1 [Cheng Lian] Worked arount SPARK-2678
    daee105 [Cheng Lian] Fixed usage messages of all Spark SQL related scripts
    a6cd3110
    History
    [SPARK-2678][Core][SQL] A workaround for SPARK-2678
    Cheng Lian authored
    JIRA issues:
    
    - Main: [SPARK-2678](https://issues.apache.org/jira/browse/SPARK-2678)
    - Related: [SPARK-2874](https://issues.apache.org/jira/browse/SPARK-2874)
    
    Related PR:
    
    - #1715
    
    This PR is both a fix for SPARK-2874 and a workaround for SPARK-2678. Fixing SPARK-2678 completely requires some API level changes that need further discussion, and we decided not to include it in Spark 1.1 release. As currently SPARK-2678 only affects Spark SQL scripts, this workaround is enough for Spark 1.1. Command line option handling logic in bash scripts looks somewhat dirty and duplicated, but it helps to provide a cleaner user interface as well as retain full downward compatibility for now.
    
    Author: Cheng Lian <lian.cs.zju@gmail.com>
    
    Closes #1801 from liancheng/spark-2874 and squashes the following commits:
    
    8045d7a [Cheng Lian] Make sure test suites pass
    8493a9e [Cheng Lian] Using eval to retain quoted arguments
    aed523f [Cheng Lian] Fixed typo in bin/spark-sql
    f12a0b1 [Cheng Lian] Worked arount SPARK-2678
    daee105 [Cheng Lian] Fixed usage messages of all Spark SQL related scripts