Skip to content

Instantly share code, notes, and snippets.

View ataft's full-sized avatar

Andrew Taft ataft

View GitHub Profile
@ataft
ataft / .block
Last active May 4, 2018 17:48 — forked from mbostock/.block
Bubble Chart
license: gpl-3.0
height: 960
border: no
{%- call statement('date_range_query', fetch_result=True) -%}
select
min(order_date) min_date,
max(order_date) max_date
from {{ ref('stg_sales_data') }}
{%- endcall -%}
{%- set start_date = load_result('date_range_query')['data'][0][0] -%}
{%- set end_date = load_result('date_range_query')['data'][0][1] -%}
@ataft
ataft / README.md
Last active May 31, 2023 16:54 — forked from bermi/README.md
DuckDB cluster mode issues

Issue resolved with 'READ_ONLY' access_mode, as per: duckdb/duckdb#7743 (comment)


This gist showcases how DuckDB on nodejs fails to with "Connection was never established or has been closed already" when running in cluster mode.

Calling (using an in :memory: database)

node cluster.js