You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
{{ message }}
Repository navigation
Commit 1455d82
Browse filesBrowse the repository at this point in the historyBrowse files
The DuckDB vgi extension runs on DuckDB 2.0, but vgi-python still pinned its
engine (and the vgi.duckdb.standard.v1 filter oracle) to DuckDB 1.5.5 /
Haybarn 1.5.5rc1. An environment with haybarn 2.0 installed refused every
pushed-down filter.
- Retarget the standard.v1 oracle to upstream DuckDB v2.0.0 (d54cbbe3df) with
Haybarn v2.0.0-rc11 (9b1a0c5829) as reference distribution: spec section 6,
adapter guide, STANDARD_V1_ENGINE_VERSIONS, the duckdb/haybarn extras and
the dev pin. The full filter conformance corpus passes unchanged on both
2.0 builds and the runtime corpus regenerates byte-identical.
- _expression_grammar: read DuckDB 2.0's json_serialize_sql shape (untyped
constant `literal`, function `arguments`, cast `type_expr`), typing
literals and cast targets through the engine as the extension's
ToValue()/TryDefaultBind do. Named function arguments are rejected, as the
extension does. The 1.5 shape is still read.
- arrow_table()/arrow_reader() helpers: 2.0 types to_arrow_table() and
to_arrow_reader() as optional.
- Relations no longer have fetchone(); the null_on_division_by_zero probe
silently swallowed that AttributeError.
Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
The DuckDB 1.5 API offers one root scan column, so this adapter emits only single-column expressions even though the VGI wire permits multiple references. This is an engine-adapter limitation, not a protocol restriction.
53
53
54
-
The v1 semantic oracle is upstream DuckDB v1.5.5 commit
`9b1a0c5829c056edaecd8ee8e7249a70fb8f50c8` is a reference distribution expected to pass the same corpus; upstream
57
+
behavior wins if an unlisted Haybarn patch differs. (It was DuckDB v1.5.5 while the extension ran on 1.5; see the
58
+
specification, section 6.)
58
59
59
60
## 4. DuckDB 2.0 filter model
60
61
@@ -78,9 +79,7 @@ It validates the resulting field name before serialization. Projected output pos
78
79
79
80
Multi-column predicates offered through DuckDB's partial table-function pushdown contract are advisory because DuckDB retains their exact residual. A single-column predicate may be required only when DuckDB's table-function contract removes the local filter and the complete VGI expression is supported exactly.
80
81
81
-
Until stable DuckDB 2.0 semantics are published, the 2.0 adapter emits `vgi.duckdb.standard.v1` only for expressions it
82
-
can map exactly to the v1.5.5 oracle. After DuckDB 2.0 is released, its distinct behavior will be advertised as
83
-
`vgi.duckdb.standard.v2`; it does not revise v1. Workers may advertise both, and the filter document selects one.
82
+
The 2.0 adapter emits `vgi.duckdb.standard.v1` only for expressions it can map exactly to the v2.0.0 oracle.
84
83
85
84
## 5. Bound-expression mapping
86
85
@@ -266,7 +265,7 @@ Generated VGI models should be used for request, response, and AST construction.
266
265
267
266
The DuckDB 1.5 integration suite covers:
268
267
269
-
- differential behavior against upstream DuckDB v1.5.5 and Haybarn v1.5.5-rc1 for the complete v1 conformance corpus;
268
+
- differential behavior against upstream DuckDB v2.0.0 and Haybarn v2.0.0-rc11 for the complete v1 conformance corpus;
26. successful strict matching when producer, advertised capability, and filter batch carry the identical provider
1343
1347
fingerprint; and
1344
-
27. core-node values, result types, NULLs, and error categories matching upstream DuckDB v1.5.5 under
1345
-
`vgi.duckdb.standard.v1`, with Haybarn v1.5.5-rc1 passing the same corpus.
1348
+
27. core-node values, result types, NULLs, and error categories matching upstream DuckDB v2.0.0 under
1349
+
`vgi.duckdb.standard.v1`, with Haybarn v2.0.0-rc11 passing the same corpus.
1346
1350
1347
1351
Exact-evaluation parity cases include arithmetic overflow, integer and floating-point division by zero, and failing
1348
1352
casts. Each case verifies whether evaluation returns a value or raises an error, along with the error category required
@@ -1409,7 +1413,7 @@ VGI 2.0 performs a direct replacement:
1409
1413
13. Mark context-independent batches with `vgi.none.v1`; for negotiated DuckDB-session batches, carry the bound time
1410
1414
zone, calendar, default collation, IEEE floating-point policy, and integer-division policy plus an optional strict
1411
1415
provider fingerprint as immutable schema metadata.
1412
-
14. Select `vgi.duckdb.standard.v1` in every initial filter document and pin it to upstream DuckDB v1.5.5 semantics.
1416
+
14. Select `vgi.duckdb.standard.v1` in every initial filter document and pin it to upstream DuckDB v2.0.0 semantics.
1413
1417
15. Reject every VGI 1.x peer before bind or execution.
1414
1418
1415
1419
The Python SDK should implement the schema, generated model, validation, reference evaluator, and corpus first. Other language SDKs consume the generated schema and implement decoding/evaluation without designing independent wire shapes. DuckDB-specific work follows [VGI DuckDB Filter Adapter](vgi-duckdb-filter-adapter.md).
@@ -1420,9 +1424,8 @@ This proposal makes the following choices:
1420
1424
1421
1425
- VGI 2.0 has one filter encoding and no v1 compatibility mode.
1422
1426
- The wire is a unified expression AST inside the existing Arrow IPC container.
1423
-
-`vgi.duckdb.standard.v1` pins core and standard-function behavior to upstream DuckDB v1.5.5; Haybarn
1424
-
v1.5.5-rc1 is a conforming reference distribution.
1425
-
- Stable DuckDB 2.0 behavior will be introduced as `vgi.duckdb.standard.v2`, without changing v1.
1427
+
-`vgi.duckdb.standard.v1` pins core and standard-function behavior to upstream DuckDB v2.0.0; Haybarn
1428
+
v2.0.0-rc11 is a conforming reference distribution.
1426
1429
- Embedded DuckDB is the recommended portable evaluator.
1427
1430
- DataFusion native pushdown is an optional deeper optimization with a residual correctness backstop.
1428
1431
- Polars is treated primarily as a client and retains its native residual.
0 commit comments