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
The SQL parser is as wrapper around Python's csv library, which translates all NULL values into the empty string. Depending on the use case, it could be preferable to give the user a choice between '' and None, especially for numerical fields.
This is an intrinsic limitation of the csv module. From the docs:
To make it as easy as possible to interface with modules which implement the DB API, the value None is written as the empty string. While this isn’t a reversible transformation, it makes it easier to dump SQL NULL data values to CSV files without preprocessing the data returned from a cursor.fetch* call.
The text was updated successfully, but these errors were encountered:
The SQL parser is as wrapper around Python's
csv
library, which translates allNULL
values into the empty string. Depending on the use case, it could be preferable to give the user a choice between''
andNone
, especially for numerical fields.This is an intrinsic limitation of the
csv
module. From the docs:The text was updated successfully, but these errors were encountered: