Open massazan opened 4 days ago
Please check these potential duplicates:
@massazan looks like this one: https://github.com/crealytics/spark-excel/issues/808
Hi @nightscape, yes it is the same issue. I tried to install the artifact 3.4.2 as mentioned, but I still got problems with the DataBricks Runtime 13.3. I tried on the Runtime 14.3 LTS and it works. Is there any plans to solve the problem fro the Runtime 13.3?
Thanks
Am I using the newest version of the library?
Is there an existing issue for this?
Current Behavior
When using the V2 API. When using the version 0.20.4, the following error occurs: ClassCastException: scala.Some cannot be cast to [Lorg.apache.spark.sql.catalyst.InternalRow; Error occurs when you omit the end boundary cell on the DataAddress parameter i.e "'0'!A5"
Error is occurs for Scala and PySpark
Expected Behavior
Spark DataReader should return a DataFrame with no errors
Steps To Reproduce
Error occurs when you omit the end boundary cell on the DataAddress parameter i.e "'0'!A5"
val configs = Map( "inferSchema" -> "false", "dataAddress" -> "'0'!A5", "header" -> "false" )
// Ensure you're using the spark-excel package val df = spark.read.format("excel") .option("header", configs("header")) .option("inferSchema", configs("inferSchema")) .option("dataAddress", configs("dataAddress")) .load(s3_path)
df.show()
Environment
Anything else?
API V1 works fine.