I have a DataFrame output from Scala coming into Either. I am looking to retrieve the Spark DataFrame out from it.
I have an Azure SQL connection in databricks that I used scala to connect. I can connect to the database and can output the query. It gives me a Spark DataFrame in the below Scala format which I am new to, can someone help me retrieve it so I can use save it as a hive table
Result of my scala code:
outputData: Either[org.apache.spark.sql.DataFrame,Boolean] = Left([Product: string, OrderNumber: string ... 27 more fields])
outputData is the Spark DataFrame that contains :
Product: string, OrderNumber: string ... 27 more fields..
I am not sure how to get the DF from Either.