Metabase Spark SQL connection to Databricks throughs Invalid SessionHandle Error

Hi All,

We have established a connection from Metabase to Databricks through (sprak sql databricks connector).Now we could able to see the database tables and query the data from metabase UI.

But what we see is ,in between there is below error that frequently pops up(Query used: select * from table_name limit 100):

[Simba]SparkJDBCDriver ERROR processing query/statement. Error Code: 0, SQL state: TStatus(statusCode:ERROR_STATUS, infoMessages:[*org.apache.hive.service.cli.HiveSQLException:Invalid SessionHandle: SessionHandle [6baeb84f-c991-4c02-9729-69b1bfb2c613]:37:36,,,, org.apache.hive.service.cli.thrift.TCLIService$Processor$, org.apache.hive.service.cli.thrift.TCLIService$Processor$,,,,,,,,,,,,,,,,,,, org.eclipse.jetty.server.

Once we restart metabase its resolved but error pops up again in between data queries.Please let us know how we can resolve this.

Hi @chandan
I’m not sure what’s going on, but you might want to open an issue in the driver repo:
Looks like it’s having problems with the session handling, which could be caused by how Metabase uses async connections.

@flamber, thank you! I have opened below issue in driver repo:

Hope it gets resolved soon