Hi developers,
I’d like to report an error when running querySql on Mac with M1/M2 chip with Spark database in Databricks. FYI - I do not encounter this error on Windows connecting to the same database, so i believe it is a compatibility issue specific to Mac M1/M2 chip. Additionally, the function executeSql works well on Mac, so the error seems specific to displaying query results in Rstudio, if that helps.
To reproduce the error, simply run
sql ← SqlRender::render(“SELECT * FROM @cdm_database_schema.person”,
cdm_database_schema = cdmDatabaseSchema)
DatabaseConnector::querySql(conn, sql)
The error is:
WARNING: sun.reflect.Reflection.getCallerClass is not supported. This will impact performance.
Error in.createErrorReport()
:
! Error executing SQL:
java.sql.SQLException: [Databricks]DatabricksJDBCDriver Error caught in BackgroundFetcher. Foreground thread ID: 1. Background thread ID: 36. Error caught: null.
Full error report as below:
DBMS:
sparkError:
java.sql.SQLException: [Databricks]DatabricksJDBCDriver Error caught in BackgroundFetcher. Foreground thread ID: 1. Background thread ID: 36. Error caught: null.SQL:
SELECT * FROM sandbox.wilcox_lab.personR version:
R version 4.3.2 (2023-10-31)Platform:
aarch64-apple-darwin20Attached base packages:
- stats
- graphics
- grDevices
- utils
- datasets
- methods
- base
Other attached packages: