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
[postgres] Extend wire-layer type fidelity to Integer, Double, Boolean, Date scalar columns #4202
PR #4201 narrowly fixes the round-trip regression for Long-valued scalar columns (the id() case) by advertising them as INT8 on the Postgres wire instead of VARCHAR. The remaining scalar types still collapse to VARCHAR in PostgresNetworkExecutor.getColumns():
Integer / Short / Byte → INT4
Double → FLOAT8
Float → FLOAT4
Boolean → BOOL
Date / LocalDateTime → DATE / TIMESTAMP
Character → CHAR
Clients (psycopg, JDBC, SQLAlchemy, …) decide deserialization based on the announced column type, so the same class of bug — value round-trips as a string, parameter loop silently fails — can in principle hit any of these. The Long fix has the simplification scaffolding in place (pgType.isArrayType() || pgType == PostgresType.LONG) so adding the other types is one-line each, but each one needs:
A round-trip integration test (engine + Postgres wire) to confirm it does not regress existing clients.
Confirmation that the text-format serialization in serializeAsText produces output the announced type's text format accepts (true/false for BOOL, ISO-8601 for DATE/TIMESTAMP, decimal for INT4/FLOAT8 — most are fine, but BOOL and DATE/TIMESTAMP deserve a careful audit).
Out of scope for #4201, which deliberately limited blast radius to fix the reported regression.
Activity
#4202 fix: address review feedback - DATE binary/text parsers, BOOLEA…
#4202 fix: [postgres] advertise scalar columns with native OIDs (INT4…
#4202 fix: address review feedback - DATE binary/text parsers, BOOLEA…
#4202 fix: defensive binary coercion + CHAR width + TIMESTAMP/BOOLEAN…
#4202 fix: address round-3 review - array+binary format mismatch, tes…
#4202 fix: [postgres] advertise scalar columns with native OIDs (#4208)
ArcadeData#4202 fix: [postgres] advertise scalar columns with native …
chore(deps): bump org.postgresql:postgresql from 42.7.12 to 42.7.13 […