morrySnow opened a new pull request, #61918: URL: https://github.com/apache/doris/pull/61918
### What problem does this PR solve? Issue Number: close #xxx Problem Summary: This PR performs several refactorings to decouple FE module dependencies: **Part A - TableNameInfo & Configuration:** - Move `isStoredTableNamesLowerCase`/`isTableNamesCaseInsensitive`/`isTableNamesCaseSensitive` from `Env` to `GlobalVariable` - Move `GlobalVariable` from fe-core to fe-common, extract `VarAttrDef` annotation class - Remove `TableNameInfo(TableIf)` constructor and `createOrNull` — callers use 3-arg String constructor - Create `NameSpaceContext` class in fe-catalog with `defaultCatalog`/`currentDb`/`currentDbId` - Move `INTERNAL_CATALOG_NAME` to `NameSpaceContext` (deprecated re-export in `InternalCatalog`) - Change `TableNameInfo.analyze()` parameter from `ConnectContext` to `NameSpaceContext` **Part B - Column Serialization:** - Create `PatternType` enum in fe-type (replacing `TPatternType` dependency in `Column`) - Create `ColumnToThrift` to extract `Column→TColumn` conversion (including `setIndexFlag`) - Create `ColumnToProtobuf` to extract `Column→ColumnPB` conversion - Remove `toThrift()`, `toPb()`, and related methods from `Column` **Part C - Expr Visitor Pattern:** - Create `ExprToExprNameVisitor` using visitor pattern - Remove `Expr.getExprName()` and overrides from all subclasses - Update callers to use visitor directly ### Release note None ### Check List (For Author) - Test: Compilation verified with `build.sh --fe` - 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]
