Skip to content

Commit

Permalink
iterating [skip ci]
Browse files Browse the repository at this point in the history
  • Loading branch information
johnkerl committed Aug 29, 2024
1 parent 618e7ee commit 3fd2a2b
Show file tree
Hide file tree
Showing 7 changed files with 19 additions and 11 deletions.
2 changes: 2 additions & 0 deletions test/src/unit-capi-enumerations.cc
Original file line number Diff line number Diff line change
Expand Up @@ -117,3 +117,5 @@ TEST_CASE(
rc = tiledb_array_get_enumeration(ctx, array, nullptr, &enmr);
REQUIRE(rc == TILEDB_ERR);
}

// XXX TOUCH
2 changes: 2 additions & 0 deletions test/src/unit-cppapi-enumerations.cc
Original file line number Diff line number Diff line change
Expand Up @@ -750,3 +750,5 @@ void CPPEnumerationFx::rm_array() {
vfs_.remove_dir(uri_);
}
}

// XXX TOUCH
2 changes: 2 additions & 0 deletions test/src/unit-rest-enumerations.cc
Original file line number Diff line number Diff line change
Expand Up @@ -206,3 +206,5 @@ void RESTEnumerationFx::create_array(const std::string& array_name) {
query.finalize();
array.close();
}

// XXX TOUCH
10 changes: 5 additions & 5 deletions tiledb/api/c_api/array_schema/array_schema_api.cc
Original file line number Diff line number Diff line change
Expand Up @@ -98,9 +98,9 @@ capi_return_t tiledb_array_schema_alloc(
capi_return_t tiledb_array_schema_alloc_at_timestamp(
tiledb_ctx_t* ctx,
tiledb_array_type_t array_type,
tiledb_array_schema_t** array_schema,
uint64_t t1,
uint64_t t2) {
uint64_t t2,
tiledb_array_schema_t** array_schema) {
ensure_output_pointer_is_valid(array_schema);

// Create ArraySchema object
Expand Down Expand Up @@ -480,12 +480,12 @@ CAPI_INTERFACE(
array_schema_alloc_at_timestamp,
tiledb_ctx_t* ctx,
tiledb_array_type_t array_type,
tiledb_array_schema_t** array_schema,
uint64_t t1,
uint64_t t2) {
uint64_t t2,
tiledb_array_schema_t** array_schema) {
return api_entry_with_context<
tiledb::api::tiledb_array_schema_alloc_at_timestamp>(
ctx, array_type, array_schema, t1, t2);
ctx, array_type, t1, t2, array_schema);
}

CAPI_INTERFACE_VOID(array_schema_free, tiledb_array_schema_t** array_schema) {
Expand Down
8 changes: 4 additions & 4 deletions tiledb/api/c_api/array_schema/array_schema_api_external.h
Original file line number Diff line number Diff line change
Expand Up @@ -130,8 +130,8 @@ TILEDB_EXPORT capi_return_t tiledb_array_schema_alloc(
* tiledb_array_schema_t* array_schema;
* uint64_t t1 = 10;
* uint64_t t2 = 20;
* tiledb_array_schema_alloc_at_timestamp(ctx, TILEDB_DENSE, &array_schema, t1,
* t2);
* tiledb_array_schema_alloc_at_timestamp(ctx, TILEDB_DENSE, t1, t2,
* &array_schema);
* @endcode
*
* @param[in] ctx The TileDB context.
Expand All @@ -142,9 +142,9 @@ TILEDB_EXPORT capi_return_t tiledb_array_schema_alloc(
TILEDB_EXPORT capi_return_t tiledb_array_schema_alloc_at_timestamp(
tiledb_ctx_t* ctx,
tiledb_array_type_t array_type,
tiledb_array_schema_t** array_schema,
uint64_t t1,
uint64_t t2);
uint64_t t2,
tiledb_array_schema_t** array_schema) TILEDB_NOEXCEPT;

/**
* Destroys an array schema, freeing associated memory.
Expand Down
2 changes: 2 additions & 0 deletions tiledb/api/c_api/enumeration/test/unit_capi_enumeration.cc
Original file line number Diff line number Diff line change
Expand Up @@ -469,3 +469,5 @@ TEST_CASE(
REQUIRE(rc == TILEDB_ERR);
}
}

// XXX TOUCH
4 changes: 2 additions & 2 deletions tiledb/sm/cpp_api/array_schema.h
Original file line number Diff line number Diff line change
Expand Up @@ -117,9 +117,9 @@ class ArraySchema : public Schema {
ctx.handle_error(tiledb_array_schema_alloc_at_timestamp(
ctx.ptr().get(),
type,
&schema,
timestamp_range.value().first,
timestamp_range.value().second));
timestamp_range.value().second,
&schema));
} else {
ctx.handle_error(
tiledb_array_schema_alloc(ctx.ptr().get(), type, &schema));
Expand Down

0 comments on commit 3fd2a2b

Please sign in to comment.