arrow-julia
arrow-julia copied to clipboard
WIP - C Data Interface
Building off of this PR https://github.com/JuliaData/Arrow.jl/pull/178
using Arrow, PyCall
pd = pyimport("pandas")
pa = pyimport("pyarrow")
df = pd.DataFrame(py"""{'a': [1, 2, 3, 4, 5], 'b': ['a', 'b', 'c', 'd', 'e']}"""o)
rb = pa.record_batch(df)
sch = Arrow.CDataInterface.get_schema() do ptr
rb.schema._export_to_c(Int(ptr))
end
arr = Arrow.CDataInterface.get_array() do ptr
rb._export_to_c(Int(ptr))
end
And in general, how does one new-up an ArrowVector? I was hoping to find a constructor that looks vaguely like this
ArrowVector{T}(buffers ::Vector{ArrowBuffer{T}})