Skip to content

Commit

Permalink
Wrap fragment_timestamp_range + fixes
Browse files Browse the repository at this point in the history
  • Loading branch information
kounelisagis committed Dec 5, 2024
1 parent c0e126a commit 944161a
Showing 1 changed file with 8 additions and 6 deletions.
14 changes: 8 additions & 6 deletions tiledb/cc/query.cc
Original file line number Diff line number Diff line change
Expand Up @@ -62,6 +62,8 @@ void init_query(py::module &m) {

.def("fragment_uri", &Query::fragment_uri)

.def("fragment_timestamp_range", &Query::fragment_timestamp_range)

.def("query_status", &Query::query_status)

.def("set_condition", &Query::set_condition)
Expand All @@ -71,13 +73,13 @@ void init_query(py::module &m) {
// uint64_t))&Query::set_data_buffer);

.def("set_data_buffer",
[](Query &q, std::string name, py::array a, uint32_t buff_size) {
q.set_data_buffer(name, const_cast<void *>(a.data()), buff_size);
[](Query &q, std::string name, py::array a, uint64_t nelements) {
QueryExperimental::set_data_buffer(q, name, const_cast<void *>(a.data()), nelements);
})

.def("set_offsets_buffer",
[](Query &q, std::string name, py::array a, uint32_t buff_size) {
q.set_offsets_buffer(name, (uint64_t *)(a.data()), buff_size);
[](Query &q, std::string name, py::array a, uint64_t nelements) {
q.set_offsets_buffer(name, (uint64_t *)(a.data()), nelements);
})

.def("set_subarray",
Expand All @@ -86,8 +88,8 @@ void init_query(py::module &m) {
})

.def("set_validity_buffer",
[](Query &q, std::string name, py::array a, uint32_t buff_size) {
q.set_validity_buffer(name, (uint8_t *)(a.data()), buff_size);
[](Query &q, std::string name, py::array a, uint64_t nelements) {
q.set_validity_buffer(name, (uint8_t *)(a.data()), nelements);
})

.def("_submit", &Query::submit, py::call_guard<py::gil_scoped_release>())
Expand Down

0 comments on commit 944161a

Please sign in to comment.