We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent aeaaeb4 commit ecdd18cCopy full SHA for ecdd18c
sql/core/src/main/scala/org/apache/spark/sql/DataFrameReader.scala
@@ -114,6 +114,16 @@ class DataFrameReader private[sql](sqlContext: SQLContext) extends Logging {
114
DataFrame(sqlContext, LogicalRelation(resolved.relation))
115
}
116
117
+ /**
118
+ * Loads input in as a [[DataFrame]], for data sources that require a path (e.g. data backed by
119
+ * a local or distributed file system).
120
+ *
121
+ * @since 1.4.0
122
+ */
123
+ def load(path: String): DataFrame = {
124
+ option("path", path).load()
125
+ }
126
+
127
/**
128
* Loads input in as a [[DataFrame]], for data sources that support multiple paths.
129
* Only works if the source is a HadoopFsRelationProvider.
0 commit comments