wjones127 opened a new issue, #45453:
URL: https://github.com/apache/arrow/issues/45453
### Describe the bug, including details regarding any error messages,
version, and platform.
```javascript
> let { vectorFromArray, FixedSizeList, Float32 } = require('apache-arrow');
undefined
```
`vectorFromArray` works for float arrays:
```javascript
> vectorFromArray([1, 2, 3], new Float32());
Vector [FloatVector<Float>] {
isValid: [Function (anonymous)],
get: [Function (anonymous)],
set: [Function (anonymous)],
indexOf: [Function (anonymous)],
_offsets: [ 0, 3 ],
data: [
Data {
type: [Float32 [Float]],
children: [],
dictionary: undefined,
offset: 0,
length: 3,
_nullCount: 0,
stride: 1,
values: [Float32Array],
nullBitmap: Uint8Array(0) []
}
],
type: Float32 [Float] { typeId: 3, precision: 1 },
stride: 1,
numChildren: 0,
length: 3
}
```
But fails for fixed size list array:
```javascript
> const type = new FixedSizeList(3, new Float32());
undefined
> vectorFromArray([[1, 2, 3], [4, 5, 6]], type)
Uncaught Error: Unrecognized type 'NONE'
at getVisitFnByTypeId
(/Users/willjones/Documents/lancedb/nodejs/node_modules/apache-arrow/visitor.js:233:11)
at getVisitFn
(/Users/willjones/Documents/lancedb/nodejs/node_modules/apache-arrow/visitor.js:72:12)
at GetBuilderCtor.getVisitFn
(/Users/willjones/Documents/lancedb/nodejs/node_modules/apache-arrow/visitor.js:30:16)
at makeBuilder
(/Users/willjones/Documents/lancedb/nodejs/node_modules/apache-arrow/factories.js:31:52)
at makeBuilder
(/Users/willjones/Documents/lancedb/nodejs/node_modules/apache-arrow/factories.js:41:35)
at
/Users/willjones/Documents/lancedb/nodejs/node_modules/apache-arrow/factories.js:181:25
at Generator.next (<anonymous>)
at vectorFromArray
(/Users/willjones/Documents/lancedb/nodejs/node_modules/apache-arrow/factories.js:52:55)
```
### Component(s)
JavaScript
--
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.
To unsubscribe, e-mail: [email protected]
For queries about this service, please contact Infrastructure at:
[email protected]