Skip to content

Commit 285f7d6

Browse files
committed
nit
1 parent 22f734d commit 285f7d6

File tree

1 file changed

+3
-1
lines changed

1 file changed

+3
-1
lines changed

src/iceberg/type.h

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -84,7 +84,9 @@ class ICEBERG_EXPORT NestedType : public Type {
8484
/// \brief Get a field by index.
8585
[[nodiscard]] virtual std::optional<std::reference_wrapper<const SchemaField>>
8686
GetFieldByIndex(int32_t index) const = 0;
87-
/// \brief Get a field by name.
87+
/// \brief Get a field by name (case-sensitive). Behavior is undefined if
88+
/// the field name is not unique; prefer GetFieldById or GetFieldByIndex
89+
/// when possible.
8890
[[nodiscard]] virtual std::optional<std::reference_wrapper<const SchemaField>>
8991
GetFieldByName(std::string_view name) const = 0;
9092
};

0 commit comments

Comments
 (0)