Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Add example values to data types docs #516

Merged
merged 5 commits into from
Jul 26, 2023
Merged

Conversation

burnash
Copy link
Collaborator

@burnash burnash commented Jul 26, 2023

No description provided.

@netlify
Copy link

netlify bot commented Jul 26, 2023

Deploy Preview for dlt-hub-docs ready!

Name Link
🔨 Latest commit ab8f8c6
🔍 Latest deploy log https://app.netlify.com/sites/dlt-hub-docs/deploys/64c14ca7138dd50008e63bdb
😎 Deploy Preview https://deploy-preview-516--dlt-hub-docs.netlify.app
📱 Preview on mobile
Toggle QR Code...

QR Code

Use your smartphone camera to open QR code link.

To edit notification comments on pull requests, go to your Netlify site configuration.

@burnash burnash requested a review from rudolfix July 26, 2023 15:54
| text | `"hello world"` |
| double | `45.678` |
| bool | `True` |
| timestamp | `2023-07-26T14:45:00Z` |
Copy link
Collaborator

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

datetimes may be given via python datetime

  • pendulum.now() or datetime.now()
  • as ISO strings which get recognized with default schema settings

| binary | b'\x00\x01\x02\x03' |
| complex | (4+3j) |
| decimal | Decimal('4.56') |
| wei | - |
Copy link
Collaborator

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

example: 2**56

note: wei represents an integer in range of 1 to 2^256-1. dlt will try to fit the wei type into the numeric type at the destination of largest precision. currently only Postgres and parquet files are able to represent wei fully

@burnash burnash requested a review from rudolfix July 26, 2023 16:22
@burnash burnash merged commit bfecda8 into devel Jul 26, 2023
25 checks passed
codingcyclist pushed a commit to codingcyclist/dlt that referenced this pull request Aug 23, 2023
* Update schema.md

* Fixed an example for complex

* Change the example for complex type

* Update examples for timestamp and wei

* Add quotes to wei repr
@rudolfix rudolfix deleted the enh/docs_dlt_data_types branch August 26, 2023 10:41
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants