Colin
11/08/2025, 10:14 PM-- Install and load Airport extension
INSTALL airport FROM community;
LOAD airport;
-- Connect to BoilStream
ATTACH 'boilstream' AS bs (
TYPE AIRPORT,
location 'grpc://localhost:50051/'
);
-- Stream data to BoilStream
COPY (SELECT * FROM my_table)
TO 'bs://topic_name';
But that requires an intermediate step. BoilStream supports Arrow Flight gRPC and (also over HTTP) so it seems that could be another approach, although I assume that would require a new connector. I'm not yet a BoilStream user, but it's looking very enticing and direct support in Sling could be a great way to load data into it.Colin
11/08/2025, 11:34 PMflarco
11/10/2025, 1:49 PMsource: my_db
target: duckdb
hooks:
start:
- type: query
connection: duckdb
query: |
-- Connect to BoilStream
ATTACH 'boilstream' AS bs (
TYPE AIRPORT,
location 'grpc://localhost:50051/'
);
defaults:
hooks:
post:
- type: query
connection: duckdb
transient: false # so we use the existing connection
query: |
-- Stream data to BoilStream
COPY (SELECT * FROM {run.object.full_name})
TO 'bs://topic_name';flarco
11/10/2025, 1:52 PMsling --src-conn mysql --src-stream ... --tgt-options '{ format: arrow }' --stdout | duckdb ...flarco
11/10/2025, 1:54 PMSling class could work:
reader = Sling(src_conn='mysql',src_stream='my_table').stream_arrow()
# use reader to pipe into duckdbflarco
11/10/2025, 1:56 PMColin
11/10/2025, 2:47 PM