Nick Rabinowitz created ARROW-12863:
---------------------------------------

             Summary: [JS] Field nullable value is overwritten
                 Key: ARROW-12863
                 URL: https://issues.apache.org/jira/browse/ARROW-12863
             Project: Apache Arrow
          Issue Type: Bug
          Components: JavaScript
    Affects Versions: 4.0.0
            Reporter: Nick Rabinowitz


I cannot find a way to manually create a table with non-nullable fields in JS. 
When I create the fields and pass them in via {{Table.new}} the value of 
{{nullable}} is overwritten.

Example:

{code:javascript}
const type = new Utf8();
const field = new Field('test', type, false);
const column = Column.new(field, []);

console.log(column.nullable); // false

const table = Table.new(column);
console.log(table.schema.fields[0].nullable); // true
{code}

The issue seems to be the hardcoded value here: 
https://github.com/apache/arrow/blob/master/js/src/util/args.ts#L184



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

Reply via email to