spanner-migration-tool icon indicating copy to clipboard operation
spanner-migration-tool copied to clipboard

Using NullString, NullJSON structs while writing to spanner

Open bharadwaj-aditya opened this issue 3 years ago • 0 comments

Expected Behavior

Change the structs that we use to write to spanner to use the NullString, NullJSON etc fields instead of the raw data directly. These fields have been added to handle scenarios where the data in that columns is actually Null, the client libraries handle the write differently.

Actual Behavior

When we get data of a given type, we convert it and write to spanner as is. We do not check for null values of these columns.

bharadwaj-aditya avatar Oct 26 '21 17:10 bharadwaj-aditya