@@ -53,20 +53,20 @@ class ICEBERG_EXPORT Type : public iceberg::util::Formattable {
5353 ~Type () override = default ;
5454
5555 // / \brief Get the type ID.
56- [[nodiscard]] virtual TypeId type_id () const = 0;
56+ virtual TypeId type_id () const = 0;
5757
5858 // / \brief Is this a primitive type (may not have child fields)?
59- [[nodiscard]] virtual bool is_primitive () const = 0;
59+ virtual bool is_primitive () const = 0;
6060
6161 // / \brief Is this a nested type (may have child fields)?
62- [[nodiscard]] virtual bool is_nested () const = 0;
62+ virtual bool is_nested () const = 0;
6363
6464 // / \brief Compare two types for equality.
6565 friend bool operator ==(const Type& lhs, const Type& rhs) { return lhs.Equals (rhs); }
6666
6767 protected:
6868 // / \brief Compare two types for equality.
69- [[nodiscard]] virtual bool Equals (const Type& other) const = 0;
69+ virtual bool Equals (const Type& other) const = 0;
7070};
7171
7272// / \brief A data type that does not have child fields.
@@ -83,28 +83,27 @@ class ICEBERG_EXPORT NestedType : public Type {
8383 bool is_nested () const override { return true ; }
8484
8585 // / \brief Get a view of the child fields.
86- [[nodiscard]] virtual std::span<const SchemaField> fields () const = 0;
86+ virtual std::span<const SchemaField> fields () const = 0;
8787 using SchemaFieldConstRef = std::reference_wrapper<const SchemaField>;
8888 // / \brief Get a field by field ID.
8989 // /
9090 // / \note This is O(1) complexity.
91- [[nodiscard]] virtual Result<std::optional<SchemaFieldConstRef>> GetFieldById (
91+ virtual Result<std::optional<SchemaFieldConstRef>> GetFieldById (
9292 int32_t field_id) const = 0;
9393 // / \brief Get a field by index.
9494 // /
9595 // / \note This is O(1) complexity.
96- [[nodiscard]] virtual Result<std::optional<SchemaFieldConstRef>> GetFieldByIndex (
96+ virtual Result<std::optional<SchemaFieldConstRef>> GetFieldByIndex (
9797 int32_t index) const = 0;
9898 // / \brief Get a field by name. Return an error Status if
9999 // / the field name is not unique; prefer GetFieldById or GetFieldByIndex
100100 // / when possible.
101101 // /
102102 // / \note This is O(1) complexity.
103- [[nodiscard]] virtual Result<std::optional<SchemaFieldConstRef>> GetFieldByName (
103+ virtual Result<std::optional<SchemaFieldConstRef>> GetFieldByName (
104104 std::string_view name, bool case_sensitive) const = 0;
105105 // / \brief Get a field by name (case-sensitive).
106- [[nodiscard]] Result<std::optional<SchemaFieldConstRef>> GetFieldByName (
107- std::string_view name) const ;
106+ Result<std::optional<SchemaFieldConstRef>> GetFieldByName (std::string_view name) const ;
108107};
109108
110109// / \defgroup type-nested Nested Types
@@ -305,10 +304,10 @@ class ICEBERG_EXPORT DecimalType : public PrimitiveType {
305304 ~DecimalType () override = default ;
306305
307306 // / \brief Get the precision (the number of decimal digits).
308- [[nodiscard]] int32_t precision () const ;
307+ int32_t precision () const ;
309308 // / \brief Get the scale (essentially, the number of decimal digits after
310309 // / the decimal point; precisely, the value is scaled by $$10^{-s}$$.).
311- [[nodiscard]] int32_t scale () const ;
310+ int32_t scale () const ;
312311
313312 TypeId type_id () const override ;
314313 std::string ToString () const override ;
@@ -358,9 +357,9 @@ class ICEBERG_EXPORT TimeType : public PrimitiveType {
358357class ICEBERG_EXPORT TimestampBase : public PrimitiveType {
359358 public:
360359 // / \brief Is this type zoned or naive?
361- [[nodiscard]] virtual bool is_zoned () const = 0;
360+ virtual bool is_zoned () const = 0;
362361 // / \brief The time resolution.
363- [[nodiscard]] virtual TimeUnit time_unit () const = 0;
362+ virtual TimeUnit time_unit () const = 0;
364363};
365364
366365// / \brief A data type representing a timestamp in microseconds without
@@ -442,7 +441,7 @@ class ICEBERG_EXPORT FixedType : public PrimitiveType {
442441 ~FixedType () override = default ;
443442
444443 // / \brief The length (the number of bytes to store).
445- [[nodiscard]] int32_t length () const ;
444+ int32_t length () const ;
446445
447446 TypeId type_id () const override ;
448447 std::string ToString () const override ;
0 commit comments