Github user yhuai commented on a diff in the pull request:

    https://github.com/apache/spark/pull/4446#discussion_r24432380
  
    --- Diff: python/pyspark/sql.py ---
    @@ -1622,6 +1622,48 @@ def func(iterator):
                 df = self._ssql_ctx.jsonRDD(jrdd.rdd(), scala_datatype)
             return DataFrame(df, self)
     
    +    def load(self, path=None, dataSourceName=None, schema=None, **options):
    +        """Returns the dataset specified by the data source and a set of 
options
    +        as a DataFrame. An optional schema can be applied as the schema of 
returned
    +        DataFrame. If dataSourceName is not provided, the default data 
source configured
    +        by spark.sql.sources.default will be used.
    +        """
    +        if path is not None:
    +            options["path"] = path
    +        if dataSourceName is None:
    +            dataSourceName = 
self._ssql_ctx.getConf("spark.sql.sources.default",
    --- End diff --
    
    It is actually trying to access SQL conf. Seems we do not have one in 
Python SQLContext. I will add getConf and setConf to it.


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