microsoft / sql-spark-connector

Apache Spark Connector for SQL Server and Azure SQL
Apache License 2.0
273 stars 116 forks source link

Fix scala test NPE in DBR #222

Open luxu1-ms opened 1 year ago

luxu1-ms commented 1 year ago

This PR fixes Spark job null pointer error in databricks. FOr current job workflow in Azure DBR, the job status returns failed even if the job succeeded, becaue of this NPE. This PR is tested on DBR 11.3 (spark 3.3.0, scala 2.12) and BDC (spark 3.1.2, scala 2.12).