0

When I run the below read options to load excel file into a dataframe , it gives me below error ,

ExcelParserOptionsException: Unable to parse options: Invalid option 'inferschema', did you mean 'enforceSchema'?

Am I doing anything wrong here?

 val df = spark.read
    .format("excel")
    .option("sheetNamePattern", section.section_name)
    .option("cellAddress", section.header_start_pos)
    .option("headerRowCount", 1)
    .option("inferSchema","true")
    .option("orientation","ROW")
    .load(path)
Jacek Laskowski
  • 72,696
  • 27
  • 242
  • 420
karti
  • 41
  • 3

0 Answers0