Compatibility for TileDB 2.2 est_result_size_var change
@@ -574,8 +574,13 @@ public:
if (var) {
auto size_pair = query_->est_result_size_var(name);
+#if TILEDB_VERSION_MAJOR == 2 && TILEDB_VERSION_MINOR == 2
buf_nbytes = size_pair[0];
offsets_num = size_pair[1];
+#else
+ buf_nbytes = size_pair.first;
+ offsets_num = size_pair.second;
+#endif
} else {
buf_nbytes = query_->est_result_size(name);
}
