Using DuckDb as a SQL data source for Perspective #1664
Replies: 1 comment
-
Sorry about the late reply @stevesimmons It is pretty trivial to build an app that uses DuckDB's Arrow writing support to generate data suitable to be consumed by Perspective, in Browser/Wasm, Node or Python. You'd need to be careful what queries you generate, as Perspective cannot currently read all Arrow types. However, Perspective is basically already a SQL engine for streaming queries, it just doesn't use SQL-the-language for queries (yet). DuckDB has some really nice static features itself, but I am skeptical the right solution to bridge the feature gap is to string these two query engines together end-to-end, at least as far as providing a coherent UX is concerned.
|
Beta Was this translation helpful? Give feedback.
-
Has anyone tried DuckDb as a data source to drive Perspective?
That could give simple Parquet input and SQL querying, with Arrow output into the Perspective grid.
Another potentially useful package here is node-duckdb, a TypeScript DuckDb implementation.
Thanks!
Beta Was this translation helpful? Give feedback.
All reactions