Skip to content
Closed
Changes from 1 commit
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
Prev Previous commit
revert
  • Loading branch information
gatorsmile committed Jun 29, 2016
commit f5100d646ffdf38464719344f47a94a285491c7a
Original file line number Diff line number Diff line change
Expand Up @@ -244,7 +244,7 @@ class DataFrameReader private[sql](sparkSession: SparkSession) extends Logging {
*/
def json(path: String): DataFrame = {
// This method ensures that calls that explicit need single argument works, see SPARK-16009
option("path", path).json(Seq.empty: _*)
json(Seq(path): _*)
}

/**
Expand Down Expand Up @@ -337,7 +337,7 @@ class DataFrameReader private[sql](sparkSession: SparkSession) extends Logging {
*/
def csv(path: String): DataFrame = {
// This method ensures that calls that explicit need single argument works, see SPARK-16009
option("path", path).csv(Seq.empty: _*)
csv(Seq(path): _*)
}

/**
Expand Down Expand Up @@ -406,7 +406,7 @@ class DataFrameReader private[sql](sparkSession: SparkSession) extends Logging {
*/
def parquet(path: String): DataFrame = {
// This method ensures that calls that explicit need single argument works, see SPARK-16009
option("path", path).parquet(Seq.empty: _*)
parquet(Seq(path): _*)
}

/**
Expand Down Expand Up @@ -434,7 +434,7 @@ class DataFrameReader private[sql](sparkSession: SparkSession) extends Logging {
*/
def orc(path: String): DataFrame = {
// This method ensures that calls that explicit need single argument works, see SPARK-16009
option("path", path).orc(Seq.empty: _*)
orc(Seq(path): _*)
}

/**
Expand Down Expand Up @@ -467,7 +467,7 @@ class DataFrameReader private[sql](sparkSession: SparkSession) extends Logging {
*/
def text(path: String): DataFrame = {
// This method ensures that calls that explicit need single argument works, see SPARK-16009
option("path", path).text(Seq.empty: _*)
text(Seq(path): _*)
}

/**
Expand Down Expand Up @@ -496,7 +496,7 @@ class DataFrameReader private[sql](sparkSession: SparkSession) extends Logging {
*/
def textFile(path: String): Dataset[String] = {
// This method ensures that calls that explicit need single argument works, see SPARK-16009
option("path", path).textFile(Seq.empty: _*)
textFile(Seq(path): _*)
}

/**
Expand Down