Skip to content

DATETIME_HR datatype not understood #707

Description

@gatesn

Hit when passing use_arrow=True to query a sparse array with a datetime64[h] dimension.

tiledb/multirange_indexing.py in _run_query(self, query, preload_metadata)
    215                 )
    216             with timing("py.buffer_conversion_time"):
--> 217                 table = self.pyquery._buffers_to_pa_table()
    218                 return table if query.return_arrow else table.to_pandas()
    219 

TileDBError: TileDB-Arrow: tiledb datatype not understood ('DATETIME_HR', cell_val_num: 1)

Looks like the constant is different to what's being checked?

TileDB-Py/tiledb/core.cc

Lines 183 to 186 in a793c9b

#if TILEDB_VERSION_MAJOR >= 2 && TILEDB_VERSION_MINOR >= 3
/* duration types map to timedelta */
case TILEDB_TIME_HR:
return py::dtype("m8[h]");

TileDB 2.4.0
TileDB-Py 0.10.1
Pyarrow 5.0.0

Activity

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions