databricks-cli/libs/dyn/convert
Pieter Noordhuis 77d6820075
Convert between integer and float in normalization (#1371)
## Changes

We currently issue a warning if an integer is used where a floating
point number is expected. But if they are convertible, we should convert
and not issue a warning. This change fixes normalization if they are
convertible between each other. We still produce a warning if the type
conversion leads to a loss in precision.

## Tests

Unit tests pass.
2024-04-17 08:58:07 +00:00
..
end_to_end_test.go Define `dyn.Mapping` to represent maps (#1301) 2024-03-25 11:01:09 +00:00
error.go Rename libs/config -> libs/dyn (#1086) 2023-12-22 13:20:45 +00:00
from_typed.go Define `dyn.Mapping` to represent maps (#1301) 2024-03-25 11:01:09 +00:00
from_typed_test.go Define `dyn.Mapping` to represent maps (#1301) 2024-03-25 11:01:09 +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 Rename libs/config -> libs/dyn (#1086) 2023-12-22 13:20:45 +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