Skip to content

replace Decimal by float - #3

Merged
zilto merged 3 commits into
mainfrom
feat/replace-decimal-by-float
Oct 10, 2025
Merged

replace Decimal by float#3
zilto merged 3 commits into
mainfrom
feat/replace-decimal-by-float

Conversation

@zilto

@zilto zilto commented Oct 10, 2025

Copy link
Copy Markdown
Contributor

Currently, tables returned by the REST API are almost all str type columns. This is because decimal.Decimal is serialized to string and the client (i.e., dlt REST API) can't automatically know to convert this to Decimal.

Motivation

Having a more diverse set of types (datetime, float, int, etc.) makes for more engaging examples. This will be helpful for the data quality tutorial notebook. It avoids having to do type-casting in the downstream code

Changes

  • Replace Decimal with float; this generates dlt double type on ingested columns

@zilto
zilto requested a review from sh-rp October 10, 2025 18:43
@zilto zilto self-assigned this Oct 10, 2025
@zilto zilto added the enhancement New feature or request label Oct 10, 2025
@zilto
zilto merged commit 075f17c into main Oct 10, 2025
2 checks passed
@zilto
zilto deleted the feat/replace-decimal-by-float branch October 10, 2025 22:14
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

enhancement New feature or request

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants