xo / usql

Universal command-line interface for SQL databases
MIT License
8.88k stars 347 forks source link

\ss fails for big tables #336

Closed nineinchnick closed 2 years ago

nineinchnick commented 2 years ago
pg:postgres@x:5432/github=> select count(*) from jobs;
┌─────────┐
│  count  │
├─────────┤
│ 3624692 │
└─────────┘
(1 row)

pg:postgres@x:5432/github=> \ss jobs
error: failed to get column stats: sql: Scan error on column index 5, name "case": converting driver.Value type float64 ("3.627608e+06") to a int64: invalid syntax
pg:postgres@x:5432/github=>