We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 5285bb7 commit f74ea1eCopy full SHA for f74ea1e
tiledb/sm/array/array.cc
@@ -805,19 +805,6 @@ void Array::encryption_type(
805
806
shared_ptr<const Enumeration> Array::get_enumeration(
807
const std::string& enumeration_name) {
808
- if (!is_open_) {
809
- throw ArrayException("Unable to load enumerations; Array is not open.");
810
- }
811
-
812
- auto schema = opened_array_->array_schema_latest_ptr();
813
- if (!schema->has_enumeration(enumeration_name)) {
814
- throw ArrayException(
815
- "Unable to get enumeration; Enumeration '" + enumeration_name +
816
- "' does not exist.");
817
- } else if (schema->is_enumeration_loaded(enumeration_name)) {
818
- return schema->get_enumeration(enumeration_name);
819
820
821
return get_enumerations({enumeration_name})[0];
822
}
823
0 commit comments