Currently, I am in the process of creating a method that is designed to take a column of data, referred to as data: any[]
, and then pack it into an Arrow-typed Array Buffer for insertion into an Arrow table.
To illustrate with an example, if we consider Type.Float64, the following approach can be taken:
Float64Vector.from(toFloat64Array(data));
However, when attempting to work with Int64Vector
, TimeSecondVector
, or TimestampVector
, error messages are being encountered:
TimestampVector.from(data)
error: Type 'AbstractVector<any>' is missing the following properties from type 'BaseVector<any>': offset, VectorName, values, typeIds, and 7 more.ts(2740)
DecimalVector.from(data), TimeSecondVector.from(data), and BinaryVector.from(data)
Type 'AbstractVector<any>' is not assignable to type 'BaseVector<any>'.ts(2322)
Extensive research has been conducted by me through various documentation sources, but unfortunately, I have not come across any information detailing how to effectively utilize these functionalities. My main objective at this point is to comprehend the process of constructing these specific types of Vectors:
TimeSecondVector
TimestampVector