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

[C++] Error when creating Table and using schema with decimal type

    XMLWordPrintableJSON

Details

    • Bug
    • Status: Closed
    • Major
    • Resolution: Duplicate
    • 5.0.0, 6.0.0
    • None
    • C++
    • None

    Description

      I'm writing a recipe in the cookbook about creating schemas, and when I try to create one, I get the following error:

      Error: NotImplemented: Extend

      Here's the R code which I run to get this error:

      share_data <- tibble::tibble(
        company = c("AMZN", "GOOG", "BKNG", "TSLA"),
        price = c(3463.12, 2884.38, 2300.46, 732.39),
        date = c("2021-09-03","2021-09-03", "2021-09-03", "2021-09-03")
      )
      
      share_schema <- schema(
        company = utf8(),
        price = decimal(precision = 1, scale = 1),
        date = utf8()
      )
      
      Table$create(share_data, schema = share_schema)
      

      I've tried to have a bit of a play around with parameters and a dig around to see what's going on, but I don't have much to go on.

      The schema creation itself is working fine, it's when it's passed into Table$create which is where it's causing problems.

      I'm not sure if the error is at the C++ or R layer.

      This is the C++ function at the R layer which is where the error is coming from: https://github.com/apache/arrow/blob/1440d5ab95c423003ecbe06372663a85cfccf769/r/src/r_to_arrow.cpp#L1327-L1342

      Attachments

        Issue Links

          Activity

            People

              Unassigned Unassigned
              thisisnic Nicola Crane
              Votes:
              0 Vote for this issue
              Watchers:
              2 Start watching this issue

              Dates

                Created:
                Updated:
                Resolved: