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
[BUG] Schema probe on a single column returns all columns #5367
Hello,
following a recent fix of schema caching (Spark/pyspark) using the WHERE 1=0 clause in PR #4118, the RowDescription returns all columns, rather than only one, queried column.
Example (Python 3.12.7 using psycopg==3.3.3) querying lesmiserables dataset:
When a query returns no rows (like the WHERE 1=0 probe used by Spark/PySpark and JDBC drivers), ArcadeDB has no data to describe, so it falls back to reading the type definition to build the column metadata. That fallback looked only at the type, never at the list of columns you actually selected, so it always returned every property plus the system columns.
Fixed in main: the column metadata is now built from the projection of the parsed query, so:
SELECT name FROM Character WHERE 1=0 -> name only
SELECT name AS hero FROM ... -> hero
SELECT * FROM ... and SELECT FROM ... -> all columns, as before
A regression test covering the empty and the populated case has been added.
❤️ Thanks for helping make ArcadeDB better! ArcadeDB is free and open source, sustained by its community. If it's useful to you or your company, please consider becoming a sponsor to keep development going.
Activity
fix(#5367): Postgres RowDescription now honours the projection list o…
Merge branch 'issue-5367': Postgres RowDescription honours the projec…
lvca commentedon Jul 21, 2026
Confirmed, thanks for the report.
When a query returns no rows (like the
WHERE 1=0probe used by Spark/PySpark and JDBC drivers), ArcadeDB has no data to describe, so it falls back to reading the type definition to build the column metadata. That fallback looked only at the type, never at the list of columns you actually selected, so it always returned every property plus the system columns.Fixed in main: the column metadata is now built from the projection of the parsed query, so:
SELECT name FROM Character WHERE 1=0->nameonlySELECT name AS hero FROM ...->heroSELECT * FROM ...andSELECT FROM ...-> all columns, as beforeA regression test covering the empty and the populated case has been added.
❤️ Thanks for helping make ArcadeDB better! ArcadeDB is free and open source, sustained by its community. If it's useful to you or your company, please consider becoming a sponsor to keep development going.
build(deps-dev): bump undici from 8.5.0 to 8.10.0 in /e2e-js [skip ci]
build(deps-dev): bump undici from 8.5.0 to 8.10.0 in /e2e-studio [ski…
fix(#5367): Postgres RowDescription now honours the projection list o…