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

[R] Creating Decimal type using the example fails

    XMLWordPrintableJSON

Details

    • Bug
    • Status: Open
    • Major
    • Resolution: Unresolved
    • None
    • None
    • R
    • None

    Description

      From the documentation:

      As an example, decimal128(7, 3) can exactly represent the numbers 1234.567 and -1234.567 (encoded internally as the 128-bit integers 1234567 and -1234567, respectively), but neither 12345.67 nor 123.4567.
      

      ...but when we try this, we get:

      library(arrow, warn.conflicts = FALSE)
      Array$create(1234.567, type = decimal128(7, 3))
      #> Error: NotImplemented: Extend
      

      Attachments

        Issue Links

          Activity

            People

              Unassigned Unassigned
              paleolimbot Dewey Dunnington
              Votes:
              0 Vote for this issue
              Watchers:
              2 Start watching this issue

              Dates

                Created:
                Updated: