Uploaded image for project: 'Apache Arrow'
  1. Apache Arrow
  2. ARROW-14530

[GLib][Ruby] Segfault when trying to create Decimal128 with comma

    XMLWordPrintableJSON

Details

    Description

      Arrow::Decimal128.new('2,2')
      /tmp/apache-arrow-20211019-6348-1ltpz75/apache-arrow-5.0.0/cpp/src/arrow/result.cc:28: ValueOrDie called on an error: Invalid: The string '2,2' is not a valid decimal number
      0   libarrow.500.dylib                  0x00000001099718e2 _ZN5arrow4util7CerrLogD2Ev + 204
      1   libarrow.500.dylib                  0x0000000109971808 _ZN5arrow4util7CerrLogD0Ev + 14
      2   libarrow.500.dylib                  0x00000001099717b0 _ZN5arrow4util8ArrowLogD1Ev + 34
      3   libarrow.500.dylib                  0x00000001098c6dcf _ZN5arrow8internal14DieWithMessageERKNSt3__112basic_stringIcNS1_11char_traitsIcEENS1_9allocatorIcEEEE + 111
      4   libarrow.500.dylib                  0x00000001098c6e7e _ZN5arrow8internal17InvalidValueOrDieERKNS_6StatusE + 146
      5   libarrow.500.dylib                  0x000000010995af91 _ZN5arrow10Decimal128C1ERKNSt3__112basic_stringIcNS1_11char_traitsIcEENS1_9allocatorIcEEEE + 93
      6   libarrow-glib.500.dylib             0x00000001054d73a5 _Z25garrow_decimal_new_stringIN5arrow10Decimal128EEPN16DecimalConverterIT_E10GArrowTypeEPKc + 181
      7   libffi.8.dylib                      0x0000000105166d8a ffi_call_unix64 + 82
      8   ???                                 0x00007ffeee29b9a8 0x0 + 140732894132648
      

      Attachments

        Issue Links

          Activity

            People

              kou Kouhei Sutou
              simpl1g Kanstantsin Ilchanka
              Votes:
              0 Vote for this issue
              Watchers:
              3 Start watching this issue

              Dates

                Created:
                Updated:
                Resolved:

                Time Tracking

                  Estimated:
                  Original Estimate - Not Specified
                  Not Specified
                  Remaining:
                  Remaining Estimate - 0h
                  0h
                  Logged:
                  Time Spent - 3.5h
                  3.5h