ADBC

Jonathan Swenson · Friday Demos · December 1, 2025 · 3:56

We're testing Arrow for connectivity to the data warehouse (rather than JDBC). The result is massive speed-ups over large result sets, and even some small ones over tiny datasets. Still…

Transcript

This transcript is auto-generated. Names and product terms may be wrong.

  1. Now for my other, this is also a non-demo in that um really nothing is happening here that's different. However, um and we're going to hope it works. It looks like it worked from cache. Um this query is against Snowflake and it's doing something a little bit different under the hood. You can see it works, which is all that the demo is.

  2. But in particular, um, what we can see here is that, uh, I can't actually find it, but, um, that's because it hasn't, it's a lot further down is that we actually use this, uh, ADBC connection factory. Um, so we for most of our database dialects, we're using JDBC. Um, JDBC is a standard Java technology for running queries.

  3. Um, and one of the things that is kind of annoying about what we're having to do is that we are pulling the data out of the database, which is communicating with us via some internal protocols or sometimes standard protocols and then we are pulling it into the datab object space and then shoving it into Apache Arrow. Um, Apache Arrow is a much more compact format for all these things and and should be a lot faster to deal with.

  4. And it turns out that some databases like Snowflake uh use uh Apache Arrow under the hood. So what we're doing is we're pulling data using Apache Arrow, converting it into JDBC objects and then back into Apache Arrow. And um we recent I recently saw a blog post from our friends over at Columner. And they said like, hey, we have this, you know, cool take a look at what we're doing with JDBC or with ADBC and Java.

  5. Um which inspired me to go take a look and see if I could get this integrated. I spent a little bit of that time going back and forth with them to um sort of understand what's possible um and decided to give it a shot and integrate it. Um again, nothing really all that um kind of worldbreaking here u but it should potentially allow us to connect to a bunch of other data databases with this.

  6. This is only um it's only implemented in this particular case for Snowflake, but it certainly could be done for a lot of others. It should make it a lot easier for us to do like large downloads without having to the like for example BigQuery when you download something it's going in and out of JSON on the way there and then in and out of JDBC objects and then into arrow and they do have connectors for um for Apache Arrow.

  7. So it would be great to be able to utilize that and and sort of save time for anyone who's downloading anything super large. Anything new for like performance improvements even or still too early? I didn't get around to actually doing this. Um I I've done some looking at like what's going on in the past. Um I think I got for a you only really see this on super large um super large downloads um because like this is where the processing time is and like the time that it takes to run a query against the data warehouse often dominates the time it takes to pull data back and forth.

  8. But if you have sort of like you know hundreds of you know millions of rows or tens of millions of rows it starts to really add up in the processing time in order to sort of especially with with BigQuery go from um JSON to JDBC to arrow. And in the past when I've gone to look at this I saw something like 20 times speed ups avoiding that that um JSON layer.

  9. Um and so that's when you're talking a tenth of a second for a super small query that doesn't really matter. But when you're talking uh minutes in order to process large swaths of data like yes it start it starts to matter. So um it's a lot faster. Um I didn't actually measure it in this particular case. Um there's a lot of this we will see if we um continue to push forward on it but it was great to get some um some validation from what columner was doing and the blog posts out there and the support from them and sort of making that happen.

  10. Awesome.