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
{{ message }}
Repository navigation
Databricks CSV seed load coercing NULL booleans to False #5589
Observed in sqlmesh[databricks] v0.224.
Seed models with Boolean columns having NULL values are coerced to False in the INSERT query. The ideal behavior would be to leave NULLs as is without manipulating data. I was unable to change this behavior through csv_settings.keep_default_na or csv_settings.na_values.
Example snippets to reproduce issue:
test_seed.csv
INSERT INTO `sqlmesh_testing_dev`.`test_lookup`.test_seed
REPLACE WHERE
TRUE
SELECT
CAST(`id` AS STRING) AS `id`,
CAST(`test_ind` AS BOOLEAN) AS test_ind
FROM
VALUES ('1', FALSE), ('2', FALSE), ('3', TRUE), ('4', FALSE) AS `t` (`id`, `test_ind`)
Activity