Skip to content
Merged
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
Next Next commit
provided a single argument constructor so that existing code of snapp…
…ydata written for spark 2.1 works correctly
  • Loading branch information
ahshahid committed Dec 3, 2019
commit 16627d07121ac67bfc939aa35cab4a2e075f8ff0
Original file line number Diff line number Diff line change
Expand Up @@ -46,6 +46,14 @@ private[sql] class JSONOptions(
defaultColumnNameOfCorruptRecord)
}

// provided a constructor so that existing code of snappydata compatible with spark 2.1 continues
// to work
def this(
parameters: Map[String, String]) = {
this(
new CaseInsensitiveMap(parameters), "")
}

val samplingRatio =
parameters.get("samplingRatio").map(_.toDouble).getOrElse(1.0)
val primitivesAsString =
Expand Down