Simba JDBC Exception When Querying Tables via BigQuery Databricks Connection
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
01-31-2025 07:19 AM
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
02-01-2025 08:11 AM
Hello @KristiLogos,
The error you are encountering, java.sql.SQLException: [Simba][JDBC](11380) Null pointer exception, is a known issue with the Simba JDBC driver for BigQuery. This error typically occurs when there is a problem with the data being fetched, such as null values or unexpected data types that the driver cannot handle. Could you please advise which JDBC version are you using?
You might need to adjust settings such as spark.sql.shuffle.partitions and spark.executor.memory
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
02-10-2025 09:22 AM
@Alberto_Umana My cluster's JDBC URL shows: 2.6.25 or later
Also, where would I adjust the spark.sql.shuffle.partitions and spark.executor.memory? in the notebook?
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
02-10-2025 10:15 AM
@Alberto_Umana In addition to my last comment:
For adjusting the spark.sql.shuffle.partitions and spark.executor.memory, I tried this but I was still seeing the same error
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
06-16-2025 12:45 AM
I also have this issue, and I resolved it by cast all the records columns in bigquery to string before I dump the data.
I first create a view like
create view xxx as
select
string_1,
string_2,
string_3,
to_json_string(record_1) as record_1,
to_json_string(record_2) as record_2,
.
.
.
from yyy I don't know which record column has issue, so I cast them all.
Then in databricks, I query the data only from the view xxx. instead of the original table yyy. With this method, I can dump millions of rows from bigquery view xxx at once.