8000 Tags · cwida/lpts · GitHub
[go: up one dir, main page]

Skip to content

Tags

Tags

v1.2.1

Toggle v1.2.1's commit message
Build LPTS against DuckDB 2.0.1

v1.2.0

Toggle v1.2.0's commit message

Verified

This commit was created on GitHub.com and signed with GitHub’s verified signature.
Merge pull request #27 from cwida/fix/duckdb-2.0-integer-literal-test

Fix DuckDB 2.0.1 LPTS round-trip regressions

v1.1.0

Toggle v1.1.0's commit message
Release 1.1.0

v1.0.0

Toggle v1.0.0's commit message
Release 1.0.0

Finalize the changelog for the 1.0.0 release: promote the Unreleased
section, and record the pretty-printed multi-line output, reduced CTE
count, human-readable column names, and the EXPLAIN (FORMAT SQL) feature
landed since 0.9.0.

Co-Authored-By: Claude Opus 4.8 (1M context) <noreply@anthropic.com>

v0.9.0

Toggle v0.9.0's commit message
Add data-dependent optimizer guard for LPTS

LPTS previously serialized DuckDB's fully optimized logical plan, which meant data-dependent optimizer facts could be baked into generated SQL. For example, statistics propagation can turn a predicate into an empty-result plan based on the current table contents, which is not stable if the data later changes.

Add lpts_enable_data_dependent_optimizers, defaulting to false. In conservative mode LPTS now runs a local optimizer pass sequence that skips optimizer passes whose decisions depend on current data, table statistics, cardinality estimates, row-group metadata, runtime dynamic filters, extension hooks, or common-subplan selectivity. Opting in keeps DuckDB's normal Optimizer::Optimize path.

The conservative path does not mutate DuckDB's global disabled_optimizers setting. It respects any user-disabled optimizers through the normal Optimizer::OptimizerDisabled check, but skips the LPTS data-dependent set locally so concurrent connections cannot observe temporary optimizer setting changes and concurrent SET disabled_optimizers calls cannot be overwritten.

Add a dedicated data_dependent_optimizers SQLLogicTest covering the default behavior, opt-in behavior, user-disabled optimizer preservation, planner-error restoration, data-independent empty results, stable join shape, and TopN opt-in. Update print_ast expectations to explicitly opt into statistics-dependent empty-result plans, and document the setting in the README.

Verified with GEN=ninja make, make format-fix, focused optimizer tests, the full SQLLogicTest suite, and SQLStorm TPC-H sf=0.001 with zero incorrect, zero LPTS errors, and zero not-implemented results.
0