GitHub user cloud-fan opened a pull request:

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

    [SPARK-19157][SQL] should be able to change spark.sql.runSQLOnFiles at 
runtime

    ## What changes were proposed in this pull request?
    
    The analyzer rule that supports to query files directly will be added to 
`Analyzer.extendedResolutionRules` when SparkSession is created, according to 
the `spark.sql.runSQLOnFiles` flag. If the flag is off when we create 
`SparkSession`, this rule is not added and we can not query files directly even 
we turn on the flag later.
    
    This PR fixes this bug by always adding that rule to 
`Analyzer.extendedResolutionRules`.
    
    ## How was this patch tested?
    
    new regression test

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

    $ git pull https://github.com/cloud-fan/spark sql-on-files

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

    https://github.com/apache/spark/pull/16531.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 #16531
    
----
commit 963b66f57d48c17642e739e07ed5bff1ae6ef39a
Author: Wenchen Fan <wenc...@databricks.com>
Date:   2017-01-10T16:50:07Z

    should be able to change spark.sql.runSQLOnFiles at runtime

----


---
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 infrastruct...@apache.org or file a JIRA ticket
with INFRA.
---

---------------------------------------------------------------------
To unsubscribe, e-mail: reviews-unsubscr...@spark.apache.org
For additional commands, e-mail: reviews-h...@spark.apache.org

Reply via email to