Skip to content

Commit

Permalink
Treat WKB and WKT dimensions as strings
Browse files Browse the repository at this point in the history
  • Loading branch information
XanthosXanthopoulos committed Oct 18, 2024
1 parent 1e4d07e commit 60e22a3
Showing 1 changed file with 4 additions and 1 deletion.
5 changes: 4 additions & 1 deletion libtiledbsoma/src/utils/arrow_adapter.cc
Original file line number Diff line number Diff line change
Expand Up @@ -615,6 +615,8 @@ Dimension ArrowAdapter::_create_dim(
std::shared_ptr<Context> ctx) {
switch (type) {
case TILEDB_STRING_ASCII:
case TILEDB_GEOM_WKB:
case TILEDB_GEOM_WKT:
return Dimension::create(*ctx, name, type, nullptr, nullptr);
case TILEDB_TIME_SEC:
case TILEDB_TIME_MS:
Expand Down Expand Up @@ -1073,7 +1075,8 @@ ArraySchema ArrowAdapter::tiledb_schema_from_arrow_schema(
continue;
}

if (ArrowAdapter::arrow_is_string_type(child->format)) {
if (ArrowAdapter::arrow_is_string_type(child->format) ||
ArrowAdapter::arrow_is_binary_type(child->format)) {
// In the core API:
//
// * domain for strings must be set as (nullptr, nullptr)
Expand Down

0 comments on commit 60e22a3

Please sign in to comment.