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

[python] Disambiguate bytes/ascii on tiledb schema -> arrow schema #406

Merged
merged 2 commits into from
Oct 14, 2022

Conversation

johnkerl
Copy link
Member

@johnkerl johnkerl commented Oct 13, 2022

Context: #405

Fantastic unit-testing was added by @bkmartinjr on #407 which was merged into this PR.

Issue (for the record): bytes and ascii both read back with np.dtype("S") == "bytes". We need to use either attr._tiledb_dtype or attr.isascii when reading TileDB schema, to determine which Arrow schema type (large_binary or large_string) to report.

@bkmartinjr
Copy link
Member

I have confirmed this unblocks the census build script.

@johnkerl johnkerl changed the title Disambiguate bytes/ascii on tiledb schema -> arrow schema [WIP] Disambiguate bytes/ascii on tiledb schema -> arrow schema Oct 14, 2022
@johnkerl johnkerl marked this pull request as ready for review October 14, 2022 17:42
Copy link
Member

@bkmartinjr bkmartinjr left a comment

Choose a reason for hiding this comment

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

LGTM

@johnkerl johnkerl merged commit 71bffd0 into main Oct 14, 2022
@johnkerl johnkerl deleted the kerl/arrow-schema-readback branch October 14, 2022 18:04
@johnkerl johnkerl changed the title Disambiguate bytes/ascii on tiledb schema -> arrow schema [python] Disambiguate bytes/ascii on tiledb schema -> arrow schema Oct 26, 2022
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.

2 participants