You are viewing a plain text version of this content. The canonical link for it is here.
Posted to jira@arrow.apache.org by "Nic Crane (Jira)" <ji...@apache.org> on 2021/09/03 10:16:00 UTC

[jira] [Created] (ARROW-13885) [C++] Error when using schema with decimal type

Nic Crane created ARROW-13885:
---------------------------------

             Summary: [C++] Error when using schema with decimal type
                 Key: ARROW-13885
                 URL: https://issues.apache.org/jira/browse/ARROW-13885
             Project: Apache Arrow
          Issue Type: Bug
          Components: C++
    Affects Versions: 5.0.0, 6.0.0
            Reporter: Nic Crane


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:


{code:java}
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)
{code}

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



--
This message was sent by Atlassian Jira
(v8.3.4#803005)