streamstack icon indicating copy to clipboard operation
streamstack copied to clipboard

[feature] DuckDB Extension for PicoMQ

Open aaronS7 opened this issue 2 months ago • 4 comments

Summary

I feel it would be valuable to have a duckdb extension that allows for querying a stream, writing to a stream, querying a stream by prefix, query based on offset, etc.

Are there any other methods/functionality we would want in a duckdb extension? What would be the minimum we want if PicoMQ had a duckdb extension? Happy to prototype first if need be

Area

Connectors

Notes

No response

Contribution

  • [x] I can open a PR for this

aaronS7 avatar Sep 06 '26 00:09 aaronS7

@aaronS7 Although DuckDB extension for streaming use-cases aren't as common. I see where it's useful for PicoMQ, mainly because of how cheap streams are to create, allowing granular streams.

The DuckDB extension itself would be heavy for this repository, but we can have a picomq/duckdb-extension dedicated repo for it. A good reference point for an extension would be https://github.com/query-farm/tributary

A few top of mind features:

  • query by tail, or more generally by offset/sequence range.
  • query by stream, list of streams or streams by prefix/regex.

Assigned the issue to you, a prototype as you mentioned would be great start.

addu390 avatar Sep 06 '26 14:09 addu390

Have been testing it out a bit, hopefully should have something usable by today or tomorrow!

aaronS7 avatar Sep 14 '26 13:09 aaronS7

Here is the initial repo https://github.com/aaronS7/duckdb-picomq Want to refine the documentation much more with some easy ways to spin up a ui to test some queries, populate picomq with some data, etc. But the duckdb functionality is there

aaronS7 avatar Sep 16 '26 14:09 aaronS7

This is sick! I'm going to try this out today, the immediate use-case I see is the ease of debugging.

addu390 avatar Sep 16 '26 15:09 addu390