MCPcopy Create free account
hub / github.com/TileDB-Inc/TileDB / evolve_default_array_1d_string

Method evolve_default_array_1d_string

test/src/unit-dense-reader.cc:270–297  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

268}
269
270void CDenseFx::evolve_default_array_1d_string() {
271 tiledb_array_schema_evolution_t* schemaEvolution;
272 auto rc = tiledb_array_schema_evolution_alloc(ctx_, &schemaEvolution);
273 REQUIRE(rc == TILEDB_OK);
274
275 // Create attribute
276 tiledb_attribute_t* b;
277 rc = tiledb_attribute_alloc(ctx_, "b", TILEDB_STRING_ASCII, &b);
278 REQUIRE(rc == TILEDB_OK);
279 rc = tiledb_attribute_set_cell_val_num(ctx_, b, TILEDB_VAR_NUM);
280 REQUIRE(rc == TILEDB_OK);
281
282 char fill_value = '7';
283 rc = tiledb_attribute_set_fill_value(ctx_, b, &fill_value, 1);
284 REQUIRE(rc == TILEDB_OK);
285
286 // Add attribute to schema evolution.
287 rc = tiledb_array_schema_evolution_add_attribute(ctx_, schemaEvolution, b);
288 REQUIRE(rc == TILEDB_OK);
289
290 // Evolve array.
291 rc = tiledb_array_evolve(ctx_, array_name_.c_str(), schemaEvolution);
292 REQUIRE(rc == TILEDB_OK);
293
294 // Cleanup.
295 tiledb_attribute_free(&b);
296 tiledb_array_schema_evolution_free(&schemaEvolution);
297}
298
299void CDenseFx::create_default_array_1d_fixed_string() {
300 int domain[] = {1, 200};

Callers

nothing calls this directly

Tested by

no test coverage detected