H-Plus-Time opened a new pull request #7771:
URL: https://github.com/apache/arrow/pull/7771
Steps for reproduction:
```js
const foo = new arrow.List(new arrow.Field('bar', new arrow.Float64()))
const table = arrow.Table.empty(foo) // ⚡
```
The Data constructor assumes childData is either falsey, a zero-length array
(still falsey, but worth distinguishing) or a non-zero length array of valid
instances of Data or objects with a data property. Coercing undefineds to empty
arrays a little earlier for compound types (List, FixedSizeList, Map) avoids
this.
----------------------------------------------------------------
This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.
For queries about this service, please contact Infrastructure at:
[email protected]