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
duckdb: the rowid pseudo-column is an unknown column #4676
main at commit 3ad8b20, built with CGO_ENABLED=0 go install github.com/sqlc-dev/sqlc/cmd/sqlc@3ad8b20fb02b5bea81591b673da0758b8685d951. sqlc version prints v1.31.1.
What happened?
Every DuckDB base table has a rowid pseudo-column (BIGINT) that can be selected, filtered on and ordered by. DuckDB sqlc engine does not know it:
query
sqlc
SELECT rowid, id FROM plan
unknown column "rowid"
SELECT p.rowid, p.id FROM plan p
unknown column "p"."rowid"
SELECT id FROM plan WHERE rowid = $1
where: unknown column "rowid"
SELECT id FROM plan ORDER BY rowid
order by: unknown column "rowid"
all of these work on duckdb 2.0, DESCRIBE SELECT rowid FROM plan reports a nullable BIGINT.
Activity
RyoKusnadi commentedon Nov 6, 2026
@kyleconroy I opened #4678 for this. Could you please review it when you have a moment? Thank you!