Open rbpasker opened 4 months ago
its the ""
between "9"
and "Susan Illston"
I think @quevon24 dealt with this. It's an ambiguity between null and "" that CSV's lack. I don't know his solution though.
COALESCE can be used used to export/import CSVs with NOT NULL columns properly
https://www.postgresql.org/docs/current/functions-conditional.html#FUNCTIONS-COALESCE-NVL-IFNULL
Not a bad idea. If you wanted to provide a PR for that, we'd certainly welcome it. I guess we can just use the string NULL
to represent null.
these are the first two lines in https://storage.courtlistener.com/bulk-data/dockets-2024-05-06.csv.bz2
the 4th column
appeal_from_str
has "" as the value, but the DDL specifies:appeal_from_str text NOT NULL
and the bulk load fails