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

[jira] [Updated] (ARROW-14228) [R] Allow for creation of nullable fields

     [ https://issues.apache.org/jira/browse/ARROW-14228?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel ]

Matthew Peterson updated ARROW-14228:
-------------------------------------
    Description: 
The current implementation of the Field class does not allow for the creation of nullable fields - nullable is hard-coded as TRUE.

 

{{{{Field$create <- function(name, type, metadata) {}}}}
{{ \{{ assert_that(inherits(name, "character"), length(name) == 1L)}}}}
{{ \{{ type <- as_type(type, name)}}}}
{{ \{{ assert_that(missing(metadata), msg = "metadata= is currently ignored")}}}}
{{ {{ Field__initialize(enc2utf8(name), type, *TRUE*)}}}}
{{ {{}}}}}

  was:
The current implementation of the Field class does not allow for the creation of nullable fields - nullable is hard-coded as TRUE.

 

{{Field$create <- function(name, type, metadata) {}}
{{ assert_that(inherits(name, "character"), length(name) == 1L)}}
{{ type <- as_type(type, name)}}
{{ assert_that(missing(metadata), msg = "metadata= is currently ignored")}}
{{ Field__initialize(enc2utf8(name), type, *TRUE*)}}
{{}}}


> [R] Allow for creation of nullable fields
> -----------------------------------------
>
>                 Key: ARROW-14228
>                 URL: https://issues.apache.org/jira/browse/ARROW-14228
>             Project: Apache Arrow
>          Issue Type: Improvement
>          Components: R
>            Reporter: Matthew Peterson
>            Priority: Minor
>
> The current implementation of the Field class does not allow for the creation of nullable fields - nullable is hard-coded as TRUE.
>  
> {{{{Field$create <- function(name, type, metadata) {}}}}
> {{ \{{ assert_that(inherits(name, "character"), length(name) == 1L)}}}}
> {{ \{{ type <- as_type(type, name)}}}}
> {{ \{{ assert_that(missing(metadata), msg = "metadata= is currently ignored")}}}}
> {{ {{ Field__initialize(enc2utf8(name), type, *TRUE*)}}}}
> {{ {{}}}}}



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