-
Notifications
You must be signed in to change notification settings - Fork 3.5k
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
GH-44392: [GLib] Add GArrowDecimal32DataType #44580
Conversation
|
* #GArrowDecimal32DataType is used if @precision up to 9 | ||
* #GArrowDecimal64DataType is used if @precision up to 19 | ||
* #GArrowDecimal128DataType is used if @precision up to 38 | ||
* Otherwise, #GArrowDecimal256DataType is used |
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.
@kou What do you think of this comment?
/* TODO: Remove = 44 when we add STRING_VIEW..DECIMAL32. */ | ||
GARROW_TYPE_DECIMAL64 = 44, |
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.
We can't remove this.
If we remove this, GARROW_TYPE_DECIMAL32
is 39
and GARROW_TYPE_DECIMAL64
is 40
.
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.
Thanks fixed. I didn't understand what STRING_VIEW
meant. Oh, It is the data type.
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.
+1
After merging your PR, Conbench analyzed the 3 benchmarking runs that have been run so far on merge-commit 5b68eca. There were no benchmark performance regressions. 🎉 The full Conbench report has more details. It also includes information about 4 possible false positives for unstable benchmarks that are known to sometimes produce them. |
Rationale for this change
arrow::Decimal32Type
data type has been introduced. It is also necessary to support the same data type in GLib.What changes are included in this PR?
This PR implements
GArrowDecimal32DataType
.Are these changes tested?
YES
Are there any user-facing changes?
Before this change
garrow_decimal_data_type_new()
returnsGArrowDecimal64DataType
if the precision is less thangarrow_decimal64_data_type_max_precision()
.After this change, it returns
GArrowDecimal32DataType
if the precision is less than garrow_decimal32_data_type_max_precision().GArrowDecimal32DataType
#44392