[
https://issues.apache.org/jira/browse/ARROW-14529?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel
]
Kouhei Sutou resolved ARROW-14529.
----------------------------------
Fix Version/s: 7.0.0
Resolution: Fixed
Issue resolved by pull request 11586
[https://github.com/apache/arrow/pull/11586]
> [Ruby] Segfault when trying to create Decimal128DataType with wrong precision
> -----------------------------------------------------------------------------
>
> Key: ARROW-14529
> URL: https://issues.apache.org/jira/browse/ARROW-14529
> Project: Apache Arrow
> Issue Type: Bug
> Components: GLib, Ruby
> Reporter: Kanstantsin Ilchanka
> Assignee: Kouhei Sutou
> Priority: Major
> Labels: pull-request-available
> Fix For: 7.0.0
>
> Time Spent: 0.5h
> Remaining Estimate: 0h
>
> {code:java}
> Arrow::Decimal128DataType.new(50, 48)
>
> /tmp/apache-arrow-20211019-6348-1ltpz75/apache-arrow-5.0.0/cpp/src/arrow/type.cc:813:
> Check failed: (precision) <= (kMaxPrecision)
> 0 libarrow.500.dylib 0x000000011170b8e2
> _ZN5arrow4util7CerrLogD2Ev + 204
> 1 libarrow.500.dylib 0x000000011170b808
> _ZN5arrow4util7CerrLogD0Ev + 14
> 2 libarrow.500.dylib 0x000000011170b7b0
> _ZN5arrow4util8ArrowLogD1Ev + 34
> 3 libarrow.500.dylib 0x00000001116a7eba
> _ZN5arrow14Decimal128TypeC2Eii + 176
> 4 libarrow.500.dylib 0x00000001116b21bc
> _ZN5arrow10decimal128Eii + 78
> 5 libarrow-glib.500.dylib 0x000000011147eb68
> garrow_decimal128_data_type_new + 24
> 6 libffi.8.dylib 0x0000000111122d8a ffi_call_unix64 +
> 82
> 7 ??? 0x00007ffee21c3818 0x0 +
> 140732691920920
> {code}
--
This message was sent by Atlassian Jira
(v8.3.4#803005)