Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

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

Merged
merged 3 commits into from
Apr 19, 2024

Conversation

acezen
Copy link
Contributor

@acezen acezen commented Apr 18, 2024

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.

  • I have read the CONTRIBUTING doc
  • I have signed the CLA
  • Lint and unit tests pass locally with my changes
  • I have added tests that prove my fix is effective or that my feature works
  • I have added necessary documentation (if appropriate)

Further comments

fixes #219

Signed-off-by: acezen <qiaozi.zwb@alibaba-inc.com>
@acezen acezen requested a review from lixueclaire April 18, 2024 10:02
@acezen acezen changed the title [FEAT][C++] Cast to correct schema when get chunk with property reader [BugFix][C++] Cast to correct schema when get chunk with property reader Apr 19, 2024
Copy link
Contributor

@lixueclaire lixueclaire left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

LGTM

@acezen acezen force-pushed the 219-fix-inconsistent-type-csv branch from 5b06f26 to 162509a Compare April 19, 2024 07:16
@acezen acezen merged commit c4a5f72 into apache:main Apr 19, 2024
3 checks passed
Elssky pushed a commit to Elssky/incubator-graphar that referenced this pull request Oct 8, 2024
…der (apache#456)

## Proposed changes
as issue apache#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.

## Further comments
fixes apache#219 
---------

Signed-off-by: acezen <qiaozi.zwb@alibaba-inc.com>
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

[Bug]: DataType inconsistent for Int32 in CSV file format
2 participants