apache / incubator-graphar

An open source, standard data file format for graph data storage and retrieval.
https://graphar.apache.org/
Apache License 2.0
195 stars 40 forks source link

[BugFix][C++] Cast to correct schema when get chunk with property reader #456

Closed acezen closed 2 months ago

acezen commented 2 months ago

Proposed changes

as issue #219 describe, the chunk table get from arrow chunk reader may not has the same type with schema. This change help to fix the problem by cast the chunk table to what they should be(schema), if cast failed, raise error.

Checklist

Put an x in the boxes that apply. You can also fill these out after creating the PR. If you're unsure about any of them, don't hesitate to ask. We're here to help! This is simply a reminder of what we are going to look for before merging your code.

Further comments

fixes #219