Commit 08a88e7
authored
[Python] Fix missing support for floats (#2883)
## Changes
Add support for floats to Python code. Previously, attempting to
deserialize a float resulted in an error.
There is only one example of a float. It's in `spot_bid_max_price` in
`compute.AzureAttributes`, which was previously unsupported. Implement
support for floats with all implications of precision loss.
## Why
Fixes #2875
## Tests
Unit tests and manually1 parent 25cc7d9 commit 08a88e7
3 files changed
Lines changed: 16 additions & 0 deletions
File tree
- experimental/python
- databricks_tests/core
- databricks/bundles/core
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
18 | 18 | | |
19 | 19 | | |
20 | 20 | | |
| 21 | + | |
21 | 22 | | |
22 | 23 | | |
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
195 | 195 | | |
196 | 196 | | |
197 | 197 | | |
| 198 | + | |
| 199 | + | |
198 | 200 | | |
199 | 201 | | |
200 | 202 | | |
| |||
Lines changed: 13 additions & 0 deletions
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
| 1 | + | |
1 | 2 | | |
2 | 3 | | |
3 | 4 | | |
| |||
332 | 333 | | |
333 | 334 | | |
334 | 335 | | |
| 336 | + | |
| 337 | + | |
| 338 | + | |
| 339 | + | |
| 340 | + | |
| 341 | + | |
| 342 | + | |
| 343 | + | |
| 344 | + | |
| 345 | + | |
| 346 | + | |
| 347 | + | |
0 commit comments