You are viewing a plain text version of this content. The canonical link for it is here.
Posted to reviews@spark.apache.org by "tokoko (via GitHub)" <gi...@apache.org> on 2026/03/03 20:43:29 UTC
[I] [FEATURE REQUEST] Add ADBC (Arrow Database Connectivity) Data Source [spark]
tokoko opened a new issue, #54603:
URL: https://github.com/apache/spark/issues/54603
Add a native ADBC (Arrow Database Connectivity) data source to Spark, similar in spirit to the existing JDBC data source but built on the Arrow-native [ADBC](https://arrow.apache.org/adbc/) API.
ADBC is a database connectivity API standard under the Apache Arrow project. It provides a vendor-neutral, columnar alternative to JDBC/ODBC specifically designed for analytical workloads. ADBC drivers return result sets as streams of Arrow data rather than row-by-row, which eliminates expensive row-to-columnar conversions. Since spark itself is row-based, the effect is not as dramatic, but still noticeable.
Why (now):
- There are mature native drivers for PostgreSQL, SQLite, DuckDB, Flight SQL, Snowflake, BigQuery, MySQL, SQL Server, Databricks and so on. It's also very easy to install (and locate) them on a system with [dbc](https://columnar.tech/dbc/) cli tool.
- There is now good support for invoking ADBC from Java via JNI bindings to the C++ ADBC driver manager (see [blog](https://columnar.tech/blog/adbc-java/)). This makes it practical to integrate ADBC into Spark's JVM-based architecture. Technically drivers can be implemented in java as well, but the quality of java implementations is pretty low, realistically one will almost almost use a native driver.
- ADBC fits well with spark's columnar read support in data source v2. Generating ArrowColumnVectors from adbc is pretty straightforward. It can be a benefit for external spark accelerators like comet and (presumably photon).
I have a proof-of-concept implementation at [spark-adbc](https://github.com/tokoko/spark-adbc) that demonstrates the basic read path and not so scientific benchmarks vs jdbc. I'm willing to incrementally implement ADBC data source support upstream if there's interest from the community.
--
This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.
To unsubscribe, e-mail: reviews-unsubscribe@spark.apache.org.apache.org
For queries about this service, please contact Infrastructure at:
users@infra.apache.org
---------------------------------------------------------------------
To unsubscribe, e-mail: reviews-unsubscribe@spark.apache.org
For additional commands, e-mail: reviews-help@spark.apache.org
Re: [I] [FEATURE REQUEST] Add ADBC (Arrow Database Connectivity) Data Source [spark]
Posted by "HyukjinKwon (via GitHub)" <gi...@apache.org>.
HyukjinKwon commented on issue #54603:
URL: https://github.com/apache/spark/issues/54603#issuecomment-4010664850
Spark can take Arrow batches directly. I think this is a good idea to have one but I think this would need an SPIP (https://spark.apache.org/improvement-proposals.html).
--
This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.
To unsubscribe, e-mail: reviews-unsubscribe@spark.apache.org
For queries about this service, please contact Infrastructure at:
users@infra.apache.org
---------------------------------------------------------------------
To unsubscribe, e-mail: reviews-unsubscribe@spark.apache.org
For additional commands, e-mail: reviews-help@spark.apache.org
Re: [I] [FEATURE REQUEST] Add ADBC (Arrow Database Connectivity) Data Source [spark]
Posted by "Vishwaspatel2401 (via GitHub)" <gi...@apache.org>.
Vishwaspatel2401 commented on issue #54603:
URL: https://github.com/apache/spark/issues/54603#issuecomment-4001926436
HI @tokoko I would like to take a look at this
--
This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.
To unsubscribe, e-mail: reviews-unsubscribe@spark.apache.org
For queries about this service, please contact Infrastructure at:
users@infra.apache.org
---------------------------------------------------------------------
To unsubscribe, e-mail: reviews-unsubscribe@spark.apache.org
For additional commands, e-mail: reviews-help@spark.apache.org
Re: [I] [FEATURE REQUEST] Add ADBC (Arrow Database Connectivity) Data Source [spark]
Posted by "tokoko (via GitHub)" <gi...@apache.org>.
tokoko commented on issue #54603:
URL: https://github.com/apache/spark/issues/54603#issuecomment-5811309318
trimmed the text down a bit and moved to a Google doc: [SPIP: ADBC Data Source](https://docs.google.com/document/d/1hewLmAc8yFCY4PYepE02Yz8iACCAWkRUZuhzHyyMqBY).
--
This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.
To unsubscribe, e-mail: reviews-unsubscribe@spark.apache.org
For queries about this service, please contact Infrastructure at:
users@infra.apache.org
---------------------------------------------------------------------
To unsubscribe, e-mail: reviews-unsubscribe@spark.apache.org
For additional commands, e-mail: reviews-help@spark.apache.org
Re: [I] [FEATURE REQUEST] Add ADBC (Arrow Database Connectivity) Data Source [spark]
Posted by "github-actions[bot] (via GitHub)" <gi...@apache.org>.
github-actions[bot] closed issue #54603: [FEATURE REQUEST] Add ADBC (Arrow Database Connectivity) Data Source
URL: https://github.com/apache/spark/issues/54603
--
This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.
To unsubscribe, e-mail: reviews-unsubscribe@spark.apache.org
For queries about this service, please contact Infrastructure at:
users@infra.apache.org
---------------------------------------------------------------------
To unsubscribe, e-mail: reviews-unsubscribe@spark.apache.org
For additional commands, e-mail: reviews-help@spark.apache.org
Re: [I] [FEATURE REQUEST] Add ADBC (Arrow Database Connectivity) Data Source [spark]
Posted by "holdenk (via GitHub)" <gi...@apache.org>.
holdenk commented on issue #54603:
URL: https://github.com/apache/spark/issues/54603#issuecomment-5808877459
That is! And yes google doc is a good way to collaborate.
--
This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.
To unsubscribe, e-mail: reviews-unsubscribe@spark.apache.org
For queries about this service, please contact Infrastructure at:
users@infra.apache.org
---------------------------------------------------------------------
To unsubscribe, e-mail: reviews-unsubscribe@spark.apache.org
For additional commands, e-mail: reviews-help@spark.apache.org
Re: [I] [FEATURE REQUEST] Add ADBC (Arrow Database Connectivity) Data Source [spark]
Posted by "HyukjinKwon (via GitHub)" <gi...@apache.org>.
HyukjinKwon commented on issue #54603:
URL: https://github.com/apache/spark/issues/54603#issuecomment-4704859117
FYI, I created https://github.com/HyukjinKwon/adbc-driver-spark that is ADBC with Spark Connect (not the datasource).
--
This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.
To unsubscribe, e-mail: reviews-unsubscribe@spark.apache.org
For queries about this service, please contact Infrastructure at:
users@infra.apache.org
---------------------------------------------------------------------
To unsubscribe, e-mail: reviews-unsubscribe@spark.apache.org
For additional commands, e-mail: reviews-help@spark.apache.org
Re: [I] [FEATURE REQUEST] Add ADBC (Arrow Database Connectivity) Data Source [spark]
Posted by "holdenk (via GitHub)" <gi...@apache.org>.
holdenk commented on issue #54603:
URL: https://github.com/apache/spark/issues/54603#issuecomment-5805694706
I'm also sort of interested in this, I've got an idea on how we could do something fun here to allow for parallel direct reads from execs too.
--
This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.
To unsubscribe, e-mail: reviews-unsubscribe@spark.apache.org
For queries about this service, please contact Infrastructure at:
users@infra.apache.org
---------------------------------------------------------------------
To unsubscribe, e-mail: reviews-unsubscribe@spark.apache.org
For additional commands, e-mail: reviews-help@spark.apache.org
Re: [I] [FEATURE REQUEST] Add ADBC (Arrow Database Connectivity) Data Source [spark]
Posted by "holdenk (via GitHub)" <gi...@apache.org>.
holdenk commented on issue #54603:
URL: https://github.com/apache/spark/issues/54603#issuecomment-6098083459
Thanks @tokoko , by any chance are you at community over code in Glasgow this week?
--
This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.
To unsubscribe, e-mail: reviews-unsubscribe@spark.apache.org
For queries about this service, please contact Infrastructure at:
users@infra.apache.org
---------------------------------------------------------------------
To unsubscribe, e-mail: reviews-unsubscribe@spark.apache.org
For additional commands, e-mail: reviews-help@spark.apache.org
Re: [I] [FEATURE REQUEST] Add ADBC (Arrow Database Connectivity) Data Source [spark]
Posted by "HyukjinKwon (via GitHub)" <gi...@apache.org>.
HyukjinKwon commented on issue #54603:
URL: https://github.com/apache/spark/issues/54603#issuecomment-4015433337
cc @lidavidm and @alinaliBQ FYI
--
This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.
To unsubscribe, e-mail: reviews-unsubscribe@spark.apache.org
For queries about this service, please contact Infrastructure at:
users@infra.apache.org
---------------------------------------------------------------------
To unsubscribe, e-mail: reviews-unsubscribe@spark.apache.org
For additional commands, e-mail: reviews-help@spark.apache.org
Re: [I] [FEATURE REQUEST] Add ADBC (Arrow Database Connectivity) Data Source [spark]
Posted by "holdenk (via GitHub)" <gi...@apache.org>.
holdenk commented on issue #54603:
URL: https://github.com/apache/spark/issues/54603#issuecomment-6108142851
I shared the Google doc with a few of the ADBC folks at Community over Code so hopefully we'll get some comments on the doc.
--
This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.
To unsubscribe, e-mail: reviews-unsubscribe@spark.apache.org
For queries about this service, please contact Infrastructure at:
users@infra.apache.org
---------------------------------------------------------------------
To unsubscribe, e-mail: reviews-unsubscribe@spark.apache.org
For additional commands, e-mail: reviews-help@spark.apache.org
Re: [I] [FEATURE REQUEST] Add ADBC (Arrow Database Connectivity) Data Source [spark]
Posted by "tokoko (via GitHub)" <gi...@apache.org>.
tokoko commented on issue #54603:
URL: https://github.com/apache/spark/issues/54603#issuecomment-6283849253
There is already a [JIRA](https://issues.apache.org/jira/browse/SPARK-60255) for this. I'm thinking of starting a devlist thread as well if there are no more preliminary comments on the doc.
One update in the doc: I reworked the dialect handling section into a pushdown section that now sketches out two parallel mechanisms for the query pushdown, one with SQL using driver-advertised dialect flags and another through substrait if driver supports substrait.
--
This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.
To unsubscribe, e-mail: reviews-unsubscribe@spark.apache.org
For queries about this service, please contact Infrastructure at:
users@infra.apache.org
---------------------------------------------------------------------
To unsubscribe, e-mail: reviews-unsubscribe@spark.apache.org
For additional commands, e-mail: reviews-help@spark.apache.org
Re: [I] [FEATURE REQUEST] Add ADBC (Arrow Database Connectivity) Data Source [spark]
Posted by "holdenk (via GitHub)" <gi...@apache.org>.
holdenk commented on issue #54603:
URL: https://github.com/apache/spark/issues/54603#issuecomment-5805701705
I agree though we probably need an SPIP (currently those are structured more around JIRA though)
--
This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.
To unsubscribe, e-mail: reviews-unsubscribe@spark.apache.org
For queries about this service, please contact Infrastructure at:
users@infra.apache.org
---------------------------------------------------------------------
To unsubscribe, e-mail: reviews-unsubscribe@spark.apache.org
For additional commands, e-mail: reviews-help@spark.apache.org
Re: [I] [FEATURE REQUEST] Add ADBC (Arrow Database Connectivity) Data Source [spark]
Posted by "devin-petersohn (via GitHub)" <gi...@apache.org>.
devin-petersohn commented on issue #54603:
URL: https://github.com/apache/spark/issues/54603#issuecomment-4024953832
Happy to help/review!
--
This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.
To unsubscribe, e-mail: reviews-unsubscribe@spark.apache.org
For queries about this service, please contact Infrastructure at:
users@infra.apache.org
---------------------------------------------------------------------
To unsubscribe, e-mail: reviews-unsubscribe@spark.apache.org
For additional commands, e-mail: reviews-help@spark.apache.org
Re: [I] [FEATURE REQUEST] Add ADBC (Arrow Database Connectivity) Data Source [spark]
Posted by "tokoko (via GitHub)" <gi...@apache.org>.
tokoko commented on issue #54603:
URL: https://github.com/apache/spark/issues/54603#issuecomment-4010718015
@HyukjinKwon sure, I can start working on drafting a document and share it here first before sending out on a mailing list. thanks!!
--
This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.
To unsubscribe, e-mail: reviews-unsubscribe@spark.apache.org
For queries about this service, please contact Infrastructure at:
users@infra.apache.org
---------------------------------------------------------------------
To unsubscribe, e-mail: reviews-unsubscribe@spark.apache.org
For additional commands, e-mail: reviews-help@spark.apache.org
Re: [I] [FEATURE REQUEST] Add ADBC (Arrow Database Connectivity) Data Source [spark]
Posted by "lidavidm (via GitHub)" <gi...@apache.org>.
lidavidm commented on issue #54603:
URL: https://github.com/apache/spark/issues/54603#issuecomment-4707381570
(That would be https://github.com/adbc-drivers/spark. We would be interested in collaborating on an ADBC driver for Apache Spark, or talking about upstreaming it if there's interest!)
--
This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.
To unsubscribe, e-mail: reviews-unsubscribe@spark.apache.org
For queries about this service, please contact Infrastructure at:
users@infra.apache.org
---------------------------------------------------------------------
To unsubscribe, e-mail: reviews-unsubscribe@spark.apache.org
For additional commands, e-mail: reviews-help@spark.apache.org
Re: [I] [FEATURE REQUEST] Add ADBC (Arrow Database Connectivity) Data Source [spark]
Posted by "HyukjinKwon (via GitHub)" <gi...@apache.org>.
HyukjinKwon commented on issue #54603:
URL: https://github.com/apache/spark/issues/54603#issuecomment-6107664674
Let's discuss here for better visibility :-).
--
This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.
To unsubscribe, e-mail: reviews-unsubscribe@spark.apache.org
For queries about this service, please contact Infrastructure at:
users@infra.apache.org
---------------------------------------------------------------------
To unsubscribe, e-mail: reviews-unsubscribe@spark.apache.org
For additional commands, e-mail: reviews-help@spark.apache.org
Re: [I] [FEATURE REQUEST] Add ADBC (Arrow Database Connectivity) Data Source [spark]
Posted by "holdenk (via GitHub)" <gi...@apache.org>.
holdenk commented on issue #54603:
URL: https://github.com/apache/spark/issues/54603#issuecomment-4014424087
I think @devin-petersohn already did some of this too, would be good to sync.
--
This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.
To unsubscribe, e-mail: reviews-unsubscribe@spark.apache.org
For queries about this service, please contact Infrastructure at:
users@infra.apache.org
---------------------------------------------------------------------
To unsubscribe, e-mail: reviews-unsubscribe@spark.apache.org
For additional commands, e-mail: reviews-help@spark.apache.org
Re: [I] [FEATURE REQUEST] Add ADBC (Arrow Database Connectivity) Data Source [spark]
Posted by "tokoko (via GitHub)" <gi...@apache.org>.
tokoko commented on issue #54603:
URL: https://github.com/apache/spark/issues/54603#issuecomment-4705734017
@HyukjinKwon I think Columnar's also working on something similar.
Another FYI, I have two arrow PRs up that are "soft" prerequisites for the data source. please, do chime in.
- apache/arrow#49796
- apache/arrow-adbc#4317
--
This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.
To unsubscribe, e-mail: reviews-unsubscribe@spark.apache.org
For queries about this service, please contact Infrastructure at:
users@infra.apache.org
---------------------------------------------------------------------
To unsubscribe, e-mail: reviews-unsubscribe@spark.apache.org
For additional commands, e-mail: reviews-help@spark.apache.org
Re: [I] [FEATURE REQUEST] Add ADBC (Arrow Database Connectivity) Data Source [spark]
Posted by "tokoko (via GitHub)" <gi...@apache.org>.
tokoko commented on issue #54603:
URL: https://github.com/apache/spark/issues/54603#issuecomment-6099352291
No, unfortunately I'm not 😔 I'll DM you on LinkedIn if you prefer to discuss anything more interactively.
--
This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.
To unsubscribe, e-mail: reviews-unsubscribe@spark.apache.org
For queries about this service, please contact Infrastructure at:
users@infra.apache.org
---------------------------------------------------------------------
To unsubscribe, e-mail: reviews-unsubscribe@spark.apache.org
For additional commands, e-mail: reviews-help@spark.apache.org
Re: [I] [FEATURE REQUEST] Add ADBC (Arrow Database Connectivity) Data Source [spark]
Posted by "tokoko (via GitHub)" <gi...@apache.org>.
tokoko commented on issue #54603:
URL: https://github.com/apache/spark/issues/54603#issuecomment-5807424082
@holdenk hey, I have a draft of the SPIP [document](https://github.com/tokoko/spark-adbc/blob/main/SPIP.md) in the repo. Should I turn it into a Google doc and we can collaborate there? I suppose a JIRA/formal proposal stuff can wait, but I can start on that as well if you think that's necessary.
> I've got an idea on how we could do something fun here to allow for parallel direct reads from execs too.
I had two "types" of read parallelism in mind:
- Driver-driven partitioning via `AdbcStatement.executePartitions` (Driver here refers to adbc driver, not the spark driver) - Spark calls `executePartitions` during `planInputPartitions`, adbc driver hands back opaque partition descriptors, one per Spark task.
- Client-driven partitioning - this would basically mirror jdbc data source with `partitionColumn` / `lowerBound` / `upperBound` / `numPartitions` options.
There's no reason why they can't be used together as well. Is that along the lines of what you were thinking?
--
This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.
To unsubscribe, e-mail: reviews-unsubscribe@spark.apache.org
For queries about this service, please contact Infrastructure at:
users@infra.apache.org
---------------------------------------------------------------------
To unsubscribe, e-mail: reviews-unsubscribe@spark.apache.org
For additional commands, e-mail: reviews-help@spark.apache.org