shangxinli commented on code in PR #289:
URL: https://github.com/apache/iceberg-cpp/pull/289#discussion_r2511859385
##########
src/iceberg/transform.h:
##########
@@ -141,6 +141,19 @@ class ICEBERG_EXPORT Transform : public util::Formattable {
/// \brief Returns the transform type.
TransformType transform_type() const;
+ /// \brief Returns the optional parameter for parameterized transforms.
+ ///
+ /// For transforms like bucket(N) or truncate(W), returns the parameter
value.
+ /// For non-parameterized transforms (identity, year, etc.), returns
std::nullopt.
+ ///
+ /// \return The parameter if present, otherwise std::nullopt
+ std::optional<int32_t> param() const {
Review Comment:
sure
--
This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.
To unsubscribe, e-mail: [email protected]
For queries about this service, please contact Infrastructure at:
[email protected]
---------------------------------------------------------------------
To unsubscribe, e-mail: [email protected]
For additional commands, e-mail: [email protected]