Skip to content

Commit 94de2d8

Browse files
improve tiles_per_row calculation
1 parent 14cc0b2 commit 94de2d8

File tree

1 file changed

+3
-1
lines changed

1 file changed

+3
-1
lines changed

tiledb/sm/query/writers/global_order_writer.cc

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1438,7 +1438,9 @@ uint64_t GlobalOrderWriter::num_tiles_per_row() {
14381438
// skip first dim. todo Explain
14391439
auto dim{array_schema_.dimension_ptr(d)};
14401440
auto dim_dom = dim->domain();
1441-
ret *= dim->domain_range(dim_dom);
1441+
ret *= dim->domain_range(dim_dom) / dim->tile_extent().rvalue_as<int32_t>();
1442+
// todo consider cases where the above calculation has a remainder. Also
1443+
// consider other types
14421444
}
14431445
return ret;
14441446
}

0 commit comments

Comments
 (0)