Skip to content

Commit c61344f

Browse files
authored
chore: replace Status::OK in comments with more appropriate words (#487)
Replace Status::OK with more appropriate words since we don't actually have Status::OK.
1 parent d4ad8f7 commit c61344f

File tree

5 files changed

+12
-12
lines changed

5 files changed

+12
-12
lines changed

src/iceberg/avro/avro_direct_decoder_internal.h

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -59,7 +59,7 @@ struct DecodeContext {
5959
/// \param metadata_context The metadata column context for populating them
6060
/// \param array_builder The Arrow array builder to append decoded data to
6161
/// \param ctx Decode context for reusing scratch buffers
62-
/// \return Status::OK if successful, or an error status
62+
/// \return Status indicating success, or an error status
6363
Status DecodeAvroToBuilder(const ::avro::NodePtr& avro_node, ::avro::Decoder& decoder,
6464
const SchemaProjection& projection,
6565
const Schema& projected_schema,

src/iceberg/avro/avro_direct_encoder_internal.h

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -51,7 +51,7 @@ struct EncodeContext {
5151
/// \param array The Arrow array containing the data to encode
5252
/// \param row_index The index of the row to encode within the array
5353
/// \param ctx Encode context for reusing scratch buffers
54-
/// \return Status::OK if successful, or an error status
54+
/// \return Status indicating success, or an error status
5555
Status EncodeArrowToAvro(const ::avro::NodePtr& avro_node, ::avro::Encoder& encoder,
5656
const Type& type, const ::arrow::Array& array, int64_t row_index,
5757
EncodeContext& ctx);

src/iceberg/catalog.h

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -47,7 +47,7 @@ class ICEBERG_EXPORT Catalog {
4747
///
4848
/// \param ns the namespace to create
4949
/// \param properties a key-value map of metadata for the namespace
50-
/// \return Status::OK if created successfully;
50+
/// \return Status indicating success if created successfully;
5151
/// ErrorKind::kAlreadyExists if the namespace already exists;
5252
/// ErrorKind::kNotSupported if the operation is not supported
5353
virtual Status CreateNamespace(
@@ -72,7 +72,7 @@ class ICEBERG_EXPORT Catalog {
7272
/// \brief Drop a namespace.
7373
///
7474
/// \param ns the namespace to drop
75-
/// \return Status::OK if dropped successfully;
75+
/// \return Status indicating success if dropped successfully;
7676
/// ErrorKind::kNoSuchNamespace if the namespace does not exist;
7777
/// ErrorKind::kNotAllowed if the namespace is not empty
7878
virtual Status DropNamespace(const Namespace& ns) = 0;
@@ -88,7 +88,7 @@ class ICEBERG_EXPORT Catalog {
8888
/// \param ns the namespace to update
8989
/// \param updates a set of properties to add or overwrite
9090
/// \param removals a set of property keys to remove
91-
/// \return Status::OK if the update is successful;
91+
/// \return Status indicating success if the update is successful;
9292
/// ErrorKind::kNoSuchNamespace if the namespace does not exist;
9393
/// ErrorKind::kUnsupported if the operation is not supported
9494
virtual Status UpdateNamespaceProperties(

src/iceberg/catalog/memory/in_memory_catalog.cc

Lines changed: 5 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -58,15 +58,15 @@ class ICEBERG_EXPORT InMemoryNamespace {
5858
///
5959
/// \param namespace_ident The namespace to create.
6060
/// \param properties A map of key-value pairs to associate with the namespace.
61-
/// \return Status::OK if the namespace is created;
61+
/// \return Status indicating success if the namespace is created;
6262
/// ErrorKind::kAlreadyExists if the namespace already exists.
6363
Status CreateNamespace(const Namespace& namespace_ident,
6464
const std::unordered_map<std::string, std::string>& properties);
6565

6666
/// \brief Deletes an existing namespace.
6767
///
6868
/// \param namespace_ident The namespace to delete.
69-
/// \return Status::OK if the namespace is deleted;
69+
/// \return Status indicating success if the namespace is deleted;
7070
/// ErrorKind::kNoSuchNamespace if the namespace does not exist;
7171
/// ErrorKind::kNotAllowed if the namespace is not empty.
7272
Status DropNamespace(const Namespace& namespace_ident);
@@ -84,7 +84,7 @@ class ICEBERG_EXPORT InMemoryNamespace {
8484
/// \param namespace_ident The namespace to update.
8585
/// \param updates Properties to add or overwrite.
8686
/// \param removals Property keys to remove.
87-
/// \return Status::OK if the update is successful;
87+
/// \return Status indicating success if the update is successful;
8888
/// ErrorKind::kNoSuchNamespace if the namespace does not exist;
8989
/// ErrorKind::kUnsupported if the operation is not supported.
9090
Status UpdateNamespaceProperties(
@@ -102,15 +102,15 @@ class ICEBERG_EXPORT InMemoryNamespace {
102102
///
103103
/// \param table_ident The fully qualified identifier of the table.
104104
/// \param metadata_location The path to the table's metadata.
105-
/// \return Status::OK if the table is registered;
105+
/// \return Status indicating success if the table is registered;
106106
/// Error otherwise.
107107
Status RegisterTable(const TableIdentifier& table_ident,
108108
const std::string& metadata_location);
109109

110110
/// \brief Unregisters a table from the specified namespace.
111111
///
112112
/// \param table_ident The identifier of the table to unregister.
113-
/// \return Status::OK if the table is removed;
113+
/// \return Status indicating success if the table is removed;
114114
/// ErrorKind::kNoSuchTable if the table does not exist.
115115
Status UnregisterTable(const TableIdentifier& table_ident);
116116

src/iceberg/util/error_collector.h

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -148,8 +148,8 @@ class ICEBERG_EXPORT ErrorCollector {
148148
/// in Build(), Apply(), or Commit() methods) to validate that no errors
149149
/// were accumulated during the builder method calls.
150150
///
151-
/// \return Status::OK if no errors, or a ValidationFailed error with
152-
/// all accumulated error messages
151+
/// \return Status indicating success if no errors, or a ValidationFailed
152+
/// error with all accumulated error messages
153153
[[nodiscard]] Status CheckErrors() const {
154154
if (!errors_.empty()) {
155155
std::string error_msg = "Validation failed due to the following errors:\n";

0 commit comments

Comments
 (0)