-
Notifications
You must be signed in to change notification settings - Fork 839
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
Improve cast docs #5114
Improve cast docs #5114
Conversation
/// | ||
/// Behavior: |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
These are moved just onto cast_with_options, as the duplication was leading to inconsistency
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
The link to cast_with_options
is a good idea
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Thank you @tustvold -- this looks good to me
/// | ||
/// Behavior: |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
The link to cast_with_options
is a good idea
/// * Primitive to List: a list array with 1 value per slot is created | ||
/// * Date32 and Date64: precision lost when going to higher interval | ||
/// * Time32 and Time64: precision lost when going to higher interval | ||
/// * Timestamp and Date{32|64}: precision lost when going to higher interval | ||
/// * Temporal to/from backing primitive: zero-copy with data type change | ||
/// * Casting from `float32/float64` to `Decimal(precision, scale)` rounds to the `scale` decimals |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
/// * Casting from `float32/float64` to `Decimal(precision, scale)` rounds to the `scale` decimals | |
/// * Casting from `float32/float64` to `Decimal(precision, scale)` rounds to `scale` decimals |
Co-authored-by: Andrew Lamb <[email protected]>
Which issue does this PR close?
Closes #.
Rationale for this change
As pointed out on apache/datafusion#8302 the docs were misleading and incomplete
What changes are included in this PR?
Are there any user-facing changes?