Github user rxin commented on a diff in the pull request:
https://github.com/apache/spark/pull/4446#discussion_r24306315
--- Diff: sql/core/src/main/scala/org/apache/spark/sql/SQLContext.scala ---
@@ -398,27 +398,173 @@ class SQLContext(@transient val sparkContext:
SparkContext)
jsonRDD(json.rdd, samplingRatio);
}
+ /**
+ * :: Experimental ::
+ * Loads a dataset from the given path as a DataFrame.
+ * It will use the default data source configured in
spark.sql.sources.default.
+ */
@Experimental
def load(path: String): DataFrame = {
val dataSourceName = conf.defaultDataSourceName
- load(dataSourceName, ("path", path))
+ load(path, dataSourceName)
+ }
+
+ /**
+ * :: Experimental ::
+ * Loads a dataset from the given path as a DataFrame based on a given
data source.
+ * It will use the default data source configured in
spark.sql.sources.default.
--- End diff --
remove this line
---
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]