ELSEIF
Your brief EB
367 stories from 119 feeds 480 clusters Refreshed 16 minutes ago next pull 16:23

DATABASES Signal 499

DuckDB v2.0 replaces its PostgreSQL-derived SQL parser with a PEG-based parser

DuckDB v2.0 swaps its PostgreSQL-derived SQL parser for a PEG-based one, keeping the DuckSQL dialect unchanged while making the grammar easier to evolve and runtime-extensible.

WHY IT MATTERS

For engineers using DuckDB, the parser change is transparent: existing SQL queries continue to work because the DuckSQL dialect is unchanged. The new PEG-based parser makes it easier for DuckDB to add new syntax features and could allow runtime extension of the grammar, which was difficult with the old Bison-based parser.

Written by elseif from the cluster below · every claim links back to a source

The three things worth knowing

01

DuckDB v2.0 replaces its PostgreSQL-derived parser with a PEG-based parser without changing the accepted SQL dialect.

02

The old Bison/LALR parser caused shift/reduce and reduce/reduce conflicts that made grammar extensions difficult.

03

The new PEG parser is designed to be easier to evolve and can be extended at runtime, according to the article.

THE CLUSTER

Same story, 1 feed.

ORDERED BY FIRST SEEN
DuckDB via Hacker News DuckDB V2 PEG-based SQL parser Open ↗