GitHub user HyukjinKwon opened a pull request:

    https://github.com/apache/spark/pull/13021

    [SPARK-15245][SQL] Stream API throws an exception for non-directory path 
with incorrect message.

    ## What changes were proposed in this pull request?
    
    https://issues.apache.org/jira/browse/SPARK-15245
    
    When `stream()` takes a non-direcotry path, this throws an exception during 
execution with a message `Option 'basePath' must be a directory`.
    
    In `DataSource`, this can be checked before. This PR prevents to give a 
non-directory path for `stream()`. 
    
    ## How was this patch tested?
    
    Unittest in `FileStreamSourceSuite` and `./build/sbt scalastyle`

You can merge this pull request into a Git repository by running:

    $ git pull https://github.com/HyukjinKwon/spark SPARK-15245

Alternatively you can review and apply these changes as the patch at:

    https://github.com/apache/spark/pull/13021.patch

To close this pull request, make a commit to your master/trunk branch
with (at least) the following in the commit message:

    This closes #13021
    
----
commit bd8ff3ec6e28bb743732193103657c08a229c935
Author: hyukjinkwon <[email protected]>
Date:   2016-05-10T05:15:39Z

    stream API throws an exception with an incorrect message when the path is 
not a direcotry

----


---
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