eldenmoon opened a new pull request, #70899: URL: https://github.com/apache/doris/pull/70899
### Background Extended DESCRIBE lists the materialized paths of Variant columns. The FE asks a BE coordinator to collect tablet schemas and merge the observed paths. ### What problem does this PR solve? Issue Number: None Related PR: #70865 (separate rowset fingerprint optimization) PR Type: Bugfix Problem Summary: A segment read error could return a successful DESCRIBE containing only the base columns. Failed schema RPCs could also produce an incomplete result after coordinator retries. Extended DESCRIBE now returns an error whenever it cannot collect a complete result for the requested scope. ### Details - **Change map:** Production code adds 277 lines and removes 344. Tests add 247 lines and remove 12. The Variant collector reports segment, external metadata, and merge failures. The BE coordinator validates worker replies and joins outstanding calls on error. The FE requires coverage of the requested tablets and decodes each response independently. Tests cover fault propagation, successful retries, and the tablet limit. - **Frequency:** Reproduced on dev-x with a targeted file read fault and with the schema RPC timeout set to zero. - **Root cause:** The collector could skip an unreadable Variant column or return the base schema. The FE could return a partial or empty column list after its coordinator attempts failed. - **Why existing tests missed it:** The Variant schema and SQL DESC tests covered healthy reads. The existing large-table test also allowed sampling, which hid missing tablet coverage. - **Fix:** A successful reply requires complete tablet coverage and a successful schema merge. Older segments with an absent ALTER-added Variant root continue to contribute their existing paths. - **Other paths and branches:** The FE and BE schema RPCs are shared by shared-nothing and Cloud. This branch targets master. - **Configs and defaults:** `max_fetch_remote_schema_tablet_count` defaults to 512. A request exceeding the session limit returns an error. - **Behavior change:** Extended DESCRIBE visits all tablets in the requested nonempty partitions within the configured limit. FE and BE both need the fix to enforce complete results. ### Testing - dev-x FE: 24 tests passed and one existing test skipped in the DESC fetch, index schema, and show-executor suites. - dev-x ASAN BE: 47 tests passed. The tests cover failed segment open, external metadata read errors, allocation failure, and successful recovery after a fault is removed. - The standalone shared-nothing cluster returned SQL error 1105 for an injected file read error. It returned the extracted Variant path after removing the fault. Zero RPC timeout and zero tablet cap also produced SQL errors. - All 30 selected SQL regression suites passed on dev-x. The run covered the Variant DESC and related Variant suites, inverted indexes, and Variant materialized views. ### Release note Extended DESCRIBE reports a read or coverage error when it cannot collect a complete schema. The session tablet count is a hard limit. ### Check List (For Author) - Behavior changed: Yes (see Details) - Does this need documentation: Yes (document the tablet limit for extended DESCRIBE in the session variable reference) - Pre-submission status: Ready ### AI Disclosure - Tool: Codex (GPT-6) - Generated: Code, tests, and description - Human review: not stated -- 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]
