Skip to content

Commit

Permalink
Revert "Enable array open v2 and query v3 by default." (#5042)
Browse files Browse the repository at this point in the history
Reverts #4974.

---
TYPE: NO_HISTORY
DESC: Revert "Enable array open v2 and query v3 by default."
  • Loading branch information
KiterLuc authored Jun 5, 2024
1 parent 6300fbf commit 0130764
Show file tree
Hide file tree
Showing 4 changed files with 18 additions and 18 deletions.
12 changes: 6 additions & 6 deletions test/src/unit-capi-config.cc
Original file line number Diff line number Diff line change
Expand Up @@ -239,8 +239,8 @@ void check_save_to_file() {
ss << "rest.retry_initial_delay_ms 500\n";
ss << "rest.server_address https://api.tiledb.com\n";
ss << "rest.server_serialization_format CAPNP\n";
ss << "rest.use_refactored_array_open true\n";
ss << "rest.use_refactored_array_open_and_query_submit true\n";
ss << "rest.use_refactored_array_open false\n";
ss << "rest.use_refactored_array_open_and_query_submit false\n";
ss << "sm.allow_separate_attribute_writes false\n";
ss << "sm.allow_updates_experimental false\n";
ss << "sm.check_coord_dups true\n";
Expand Down Expand Up @@ -578,13 +578,13 @@ TEST_CASE("C API: Test config iter", "[capi][config]") {
CHECK(rc == TILEDB_OK);
CHECK(error == nullptr);
rc = tiledb_config_set(
config, "rest.use_refactored_array_open", "false", &error);
config, "rest.use_refactored_array_open", "true", &error);
CHECK(rc == TILEDB_OK);
CHECK(error == nullptr);
rc = tiledb_config_set(
config,
"rest.use_refactored_array_open_and_query_submit",
"false",
"true",
&error);
CHECK(rc == TILEDB_OK);
CHECK(error == nullptr);
Expand Down Expand Up @@ -612,8 +612,8 @@ TEST_CASE("C API: Test config iter", "[capi][config]") {
all_param_values["rest.load_metadata_on_array_open"] = "false";
all_param_values["rest.load_non_empty_domain_on_array_open"] = "false";
all_param_values["rest.load_enumerations_on_array_open"] = "false";
all_param_values["rest.use_refactored_array_open"] = "false";
all_param_values["rest.use_refactored_array_open_and_query_submit"] = "false";
all_param_values["rest.use_refactored_array_open"] = "true";
all_param_values["rest.use_refactored_array_open_and_query_submit"] = "true";
all_param_values["sm.allow_separate_attribute_writes"] = "false";
all_param_values["sm.allow_updates_experimental"] = "false";
all_param_values["sm.encryption_key"] = "";
Expand Down
10 changes: 5 additions & 5 deletions tiledb/api/c_api/config/config_api_external.h
Original file line number Diff line number Diff line change
Expand Up @@ -680,13 +680,13 @@ TILEDB_EXPORT void tiledb_config_free(tiledb_config_t** config) TILEDB_NOEXCEPT;
* with the open array <br>
* **Default**: true
* - `rest.use_refactored_array_open` <br>
* If true, the new REST routes and APIs for opening an array
* If true, the new, experimental REST routes and APIs for opening an array
* will be used <br>
* **Default**: true
* **Default**: false
* - `rest.use_refactored_array_open_and_query_submit` <br>
* If true, the new REST routes and APIs for opening an array and submitting
* a query will be used <br>
* **Default**: true
* If true, the new, experimental REST routes and APIs for opening an array
* and submitting a query will be used <br>
* **Default**: false
* - `rest.curl.buffer_size` <br>
* Set curl buffer size for REST requests <br>
* **Default**: 524288 (512KB)
Expand Down
4 changes: 2 additions & 2 deletions tiledb/sm/config/config.cc
Original file line number Diff line number Diff line change
Expand Up @@ -94,8 +94,8 @@ const std::string Config::REST_CURL_VERBOSE = "false";
const std::string Config::REST_LOAD_ENUMERATIONS_ON_ARRAY_OPEN = "true";
const std::string Config::REST_LOAD_METADATA_ON_ARRAY_OPEN = "true";
const std::string Config::REST_LOAD_NON_EMPTY_DOMAIN_ON_ARRAY_OPEN = "true";
const std::string Config::REST_USE_REFACTORED_ARRAY_OPEN = "true";
const std::string Config::REST_USE_REFACTORED_QUERY_SUBMIT = "true";
const std::string Config::REST_USE_REFACTORED_ARRAY_OPEN = "false";
const std::string Config::REST_USE_REFACTORED_QUERY_SUBMIT = "false";
const std::string Config::SM_ALLOW_SEPARATE_ATTRIBUTE_WRITES = "false";
const std::string Config::SM_ALLOW_UPDATES_EXPERIMENTAL = "false";
const std::string Config::SM_ENCRYPTION_KEY = "";
Expand Down
10 changes: 5 additions & 5 deletions tiledb/sm/cpp_api/config.h
Original file line number Diff line number Diff line change
Expand Up @@ -857,14 +857,14 @@ class Config {
* **Default**: true
* - `rest.use_refactored_array_open` <br>
* **Experimental** <br>
* If true, the new REST routes and APIs for opening an array
* If true, the new, experimental REST routes and APIs for opening an array
* will be used <br>
* **Default**: true
* **Default**: false
* - `rest.use_refactored_array_open_and_query_submit` <br>
* **Experimental** <br>
* If true, the new REST routes and APIs for opening an array and
* submitting a query will be used <br>
* **Default**: true
* If true, the new, experimental REST routes and APIs for opening an array
* and submitting a query will be used <br>
* **Default**: false
* - `rest.curl.buffer_size` <br>
* Set curl buffer size for REST requests <br>
* **Default**: 524288 (512KB)
Expand Down

0 comments on commit 0130764

Please sign in to comment.