morningman opened a new pull request, #64256:
URL: https://github.com/apache/doris/pull/64256

   ### What & why
   
   Follow-up to #64253 (the MaxCompute catalog-SPI cutover). After the cutover 
a `max_compute` catalog deserializes to `PluginDrivenExternalCatalog` and no 
legacy `MaxComputeExternal*` object is ever instantiated, so the legacy 
MaxCompute subsystem in fe-core is dead code. This removes it and makes 
fe-core's dependency tree fully odps-free.
   
   ### Changes
   
   **1. Remove legacy subsystem** (`7a4db351100`)
   - Delete 20 fe-core files: `datasource/maxcompute/*` (incl. `MCTransaction`, 
`MaxComputeScanNode`/`Split`), the MaxCompute sink/insert/txn plumbing, and 2 
legacy-only tests.
   - Clean ~21 reverse-reference sites (imports + dead 
`instanceof`/visitor/rule branches), keeping every `PluginDriven`/connector 
sibling branch and the image/replay keep-set (GsonUtils compat strings; 
`TableType`/`TransactionType`/`TableFormatType`/`InitCatalogLog.Type` 
`MAX_COMPUTE` enums; block-id thrift).
   - Rewire 3 tests; e.g. `FrontendServiceImplTest`'s block-id RPC test now 
mocks the generic `Transaction` SPI, since `getMaxComputeBlockIdRange` reads 
the PluginDriven connector transaction.
   
   **2. Make fe-core odps-free** (`409300a75b8`)
   - Drop the two odps deps from `fe-core/pom.xml`.
   - Move `MCUtils` from fe-common into 
`be-java-extensions/max-compute-connector` (its only consumer after the 
removal); keep `MCProperties` (odps-free constants) in fe-common.
   - Drop `odps-sdk-core` from fe-common — it was also leaking netty/protobuf 
transitively to fe-common's own `DorisHttpException`/`GsonUtilsBase`, so 
declare `netty-all` + `protobuf-java` directly (proper dependency hygiene).
   
   **3. Doc-sync** (`f8c305765e8`) — plan-doc 
PROGRESS/HANDOFF/deviations/design tracking notes.
   
   ### Verification
   
   - `mvn -pl :fe-core -am test-compile` (main+test) passes; checkstyle 0 
violations; connector import-gate passes.
   - `grep -rn com.aliyun.odps fe/fe-core/src` → empty.
   - `mvn -pl :fe-core dependency:tree | grep odps` → empty (no odps, direct or 
transitive).
   
   🤖 Generated with [Claude Code](https://claude.com/claude-code)
   


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