rdblue opened a new pull request, #5601:
URL: https://github.com/apache/iceberg/pull/5601

   This refactors the `Transform` API so that transforms are generic and do not 
require a `Type` when they are created or loaded.
   
   Initially, `Transform` exposed `apply` to run the transform on a value. This 
requires knowing the type of the value ahead of time. However, most `Transform` 
methods are generic and accept a type argument so the API was mixed. In 
addition, working with `Transform` was more difficult because `Transform` must 
always have a type when it is created, even though types may change or may not 
be known. For example, a sort order can reference transformed columns, but does 
not include the types of those source columns.
   
   This PR is inspired by the Python implementation, which left `Transform` 
generic and uses a method to run a function that applies the transform based on 
a type that is known later, when the schema is known. This PR introduces 
`bind(Type)` that returns `Function<S, T>` to transform values.
   
   This is a large PR that changes the uses in API, core, and Spark 3.3.


-- 
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]

Reply via email to