Skip to content

Commit

Permalink
Support spark session properties
Browse files Browse the repository at this point in the history
  • Loading branch information
wphillips-d authored and nightscape committed Apr 3, 2023
1 parent f2b74c6 commit b2756bb
Showing 1 changed file with 2 additions and 1 deletion.
Original file line number Diff line number Diff line change
Expand Up @@ -35,7 +35,8 @@ class DefaultSource extends RelationProvider with SchemaRelationProvider with Cr
parameters: Map[String, String],
schema: StructType
): ExcelRelation = {
val wbReader = WorkbookReader(parameters, sqlContext.sparkContext.hadoopConfiguration)
val conf = sqlContext.sparkSession.sessionState.newHadoopConf()
val wbReader = WorkbookReader(parameters, conf)
val dataLocator = DataLocator(parameters)
ExcelRelation(
header = checkParameter(parameters, "header").toBoolean,
Expand Down

0 comments on commit b2756bb

Please sign in to comment.