morrySnow opened a new pull request, #61786: URL: https://github.com/apache/doris/pull/61786
### What problem does this PR solve? Problem Summary: `Function` and its subclasses were tightly coupled to the Thrift class `TFunctionBinaryType`. This refactoring introduces a pure-Java `BinaryType` enum inside `Function`, replaces all internal usages of `TFunctionBinaryType` with it, and confines Thrift conversion to `FunctionToThriftConverter` only. **Changes:** - Added `Function.BinaryType` enum (pure Java, no Thrift dependency) with 8 values: BUILTIN, HIVE, NATIVE, IR, RPC, JAVA_UDF, AGG_STATE, PYTHON_UDF - Added `toThriftBinaryType()` and `fromThriftBinaryType()` conversion methods in `FunctionToThriftConverter` - Updated 17 files to replace `TFunctionBinaryType` with `Function.BinaryType` - `TFunctionBinaryType` now only appears in `FunctionToThriftConverter.java` (the Thrift serialization boundary) ### Release note None ### Check List (For Author) - Test: No need to test (pure refactoring, no behavioral change — only enum type replacement with identical values) - Behavior changed: No - Does this need documentation: No -- 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]
