Why Does a Database Default Not Fill an Explicitly Empty Import Value?
An import creates a request without a priority, even though the database column has a default. Another request receives the default correctly. Before adding a cleanup job, inspect what the importer actually sent. An omitted column and an explicitly supplied NULL are different inputs.
The useful question is whether the source intended “use the normal value,” “this value is unknown,” or “clear the value.” Treating all three as the same state can create records that look complete but express the wrong instruction.
Establish the insertion contract
PostgreSQL's default-value documentation explains that an unspecified column receives its default when a new row is created. A command can also explicitly request DEFAULT.
A default is therefore not a general instruction to replace every empty-looking input. Review the actual insert generated by the importer, including whether it names the column and supplies NULL. Check application transformations before blaming the database.
Record the default's meaning in business language. “Normal handling priority” is different from “priority not assessed.” If the distinction affects routing, it should survive ingestion.
Use three deliberate test records
Illustrative example: request priority
Imagine a nullable priority column with a default of “normal.” Test one insert that omits priority, one that explicitly supplies NULL, and one that supplies “urgent.” The expected results are normal, NULL and urgent respectively.
Then test the form or CSV adapter, not just direct SQL. A blank spreadsheet cell may be converted into an empty string, a missing property or NULL. The database only sees the value produced by that conversion.
Include an invalid supplied value
Add a fourth record with an unsupported priority. It should follow the agreed validation rule rather than quietly receive the default. Otherwise a typo becomes indistinguishable from a deliberate decision to use normal handling.
Keep the original input and the interpreted state in the test evidence. Use synthetic records so a reviewer can follow the case without customer information.
Separate creation from later updates
A creation default does not define what an update should do. An omitted field in a patch may mean “leave unchanged,” while a supplied NULL may mean “clear,” depending on the API contract.
Write separate examples for create and update. Do not reuse an importer mapping merely because the payload field has the same name. A mapping suitable for new requests can erase values in existing ones.
For each operation, document the treatment of absence, NULL, empty text and an explicit value. Include which states are rejected.
Review a changed default carefully
Before changing the default, decide whether only future records should use it. Existing records may contain meaningful decisions that should remain intact.
If historical values need revision, treat that as a separate migration with its own selection rule and review. A new default and a historical rewrite answer different questions.
Check all creation paths: user forms, background imports and administrative scripts. One path may still explicitly send the old value and therefore bypass the new default.
Accept the mapping when intent survives
A reviewer should be able to predict each test record's stored value from the documented source meaning. Confirm that rejected records identify the field and reason, and that no silent substitution hides an invalid input.
For the broader mapping process, read the field mapping contract guide. Bring one ambiguous input and the desired stored result to a project discussion; that is more useful than asking for a universal “fill blanks” rule.
Editorial note
Prepared with AI assistance. Primary sources and the FutureOS article inventory were checked on October 26, 2026. Examples are illustrative, not customer results. FutureOS is described as being in prelaunch in its current introduction. This guide does not claim an available product feature, integration or service, and no independent expert review is claimed.




Comments