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

    https://github.com/apache/spark/pull/4446#discussion_r24436299
  
    --- 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 --
    
    Oh, I see, thanks!


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