We have recently upgraded our Azure Databricks runtime from 6.4 to 7.3LTS. And the issue is that my Scala bulk insert for SQL Server MI is not working anymore. The error i am getting is as below
%scala
val bulkCopyConfig = Config(Map(
"url" -> jdbchostURL,
"databaseName" -> jdbcDatabase,
"user" -> jdbcUsername,
"password" -> jdbcPassword,
"dbTable" -> jdbcTableName,
"bulkCopyBatchSize" -> "200000",
"bulkCopyTableLock" -> "true",
"bulkCopyTimeout" -> "600"
))
The error that i am getting is
java.lang.NoClassDefFoundError: scala/Product$class
I have checked GitHub and other sites, no specific answer to the problem is available. Please help
Tried multiple solutions but to no avail, expecting a solution that can fix the above error and enable to run scala 2.11 code on scala 2.12 easily.