databricks-cli/libs/dyn/convert
Pieter Noordhuis 87bc583819
Allow the any type to be set to nil in `convert.FromTyped` (#1518)
## Changes

This came up in integration testing for #1511. One of the tests
converted a `map[string]any` to a dynamic value and encountered a `nil`
and errored out. We can safely return a nil in this case.

## Tests

Unit test passes.
2024-06-21 11:19:48 +00:00
..
end_to_end_test.go Fix conversion of zero valued scalar pointers to a dynamic value (#1433) 2024-05-21 11:53:00 +00:00
error.go Rename libs/config -> libs/dyn (#1086) 2023-12-22 13:20:45 +00:00
from_typed.go Allow the any type to be set to nil in `convert.FromTyped` (#1518) 2024-06-21 11:19:48 +00:00
from_typed_test.go Allow the any type to be set to nil in `convert.FromTyped` (#1518) 2024-06-21 11:19:48 +00:00
normalize.go Convert between integer and float in normalization (#1371) 2024-04-17 08:58:07 +00:00
normalize_test.go Convert between integer and float in normalization (#1371) 2024-04-17 08:58:07 +00:00
struct_info.go Add support for Lakehouse monitoring in bundles (#1307) 2024-05-31 09:42:25 +00:00
struct_info_test.go Define `dyn.Mapping` to represent maps (#1301) 2024-03-25 11:01:09 +00:00
to_typed.go Define `dyn.Mapping` to represent maps (#1301) 2024-03-25 11:01:09 +00:00
to_typed_test.go Define `dyn.Mapping` to represent maps (#1301) 2024-03-25 11:01:09 +00:00