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

Factor write_direct_dense out of Cython #2109

Merged
merged 5 commits into from
Nov 25, 2024

Conversation

kounelisagis
Copy link
Member

@kounelisagis kounelisagis commented Nov 15, 2024

This PR integrates the write_direct_dense functionality directly into Python's DenseArray::write_direct, using only the pybind11/C++ bindings.

Copy link
Member

@ihnorton ihnorton left a comment

Choose a reason for hiding this comment

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

This is because the np_to_tdb_dtype function (see here) cannot handle numpy arrays with multiple dtypes.

I think we need to dig in to this one more, because it doesn't exactly have multiple dtypes -- the dtype is a record type. Also the mem:// issue, see inline.

tiledb/tests/test_hypothesis.py Outdated Show resolved Hide resolved
@kounelisagis kounelisagis force-pushed the agis/move-write_direct_dense-to-python branch from 7b7929c to bf869f3 Compare November 19, 2024 18:31
Copy link
Member

@ihnorton ihnorton left a comment

Choose a reason for hiding this comment

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

LGTM, would like to get @nguyenv review as well.

Copy link
Collaborator

@nguyenv nguyenv left a comment

Choose a reason for hiding this comment

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

LGTM

tiledb/dense_array.py Outdated Show resolved Hide resolved
kounelisagis and others added 2 commits November 25, 2024 07:26
@kounelisagis kounelisagis merged commit c0e126a into pybind11-full Nov 25, 2024
27 checks passed
@kounelisagis kounelisagis deleted the agis/move-write_direct_dense-to-python branch November 25, 2024 06:55
kounelisagis added a commit that referenced this pull request Dec 9, 2024
kounelisagis added a commit that referenced this pull request Dec 20, 2024
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.

3 participants