slfan1989 opened a new pull request, #13913: URL: https://github.com/apache/iceberg/pull/13913
### Description This pull request refactors the existing Spark procedures to consistently use `ProcedureInput` for parameter handling. Previously, many stored procedures manually handled parameter extraction from `InternalRow`, leading to inconsistent code across the project. By adopting `ProcedureInput`, we improve the code uniformity and ensure that all stored procedures now use a unified approach for parameter handling. ### Changes: - Replaced manual parameter extraction with `ProcedureInput` in relevant stored procedure code. - Simplified parameter validation and conversion by using `ProcedureInput` methods like `asString`, `asLong`, `asInt`, etc. - Enhanced readability and maintainability by consolidating parameter handling logic into a centralized class. ### Benefits: - **Consistency**: All stored procedures now handle parameters in a consistent and standardized way. - **Readability**: Code is more readable and easier to maintain by leveraging `ProcedureInput`'s built-in functions. - **Reduced Duplication**: Avoids repeated parameter extraction and conversion logic throughout the project. -- 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]
