freemandealer opened a new pull request, #70871: URL: https://github.com/apache/doris/pull/70871
### Background Doris reads external table files in splits. A backend can skip a missing split and record it in the query profile. For Iceberg, the files named by a committed snapshot are required to read that snapshot correctly. ### What problem does this PR solve? Issue Number: None Related PR: #69723 (removed the legacy file scanner), #70664 (added physical split planning in the BE) PR Type: Enhancement Problem Summary: Operators can see how many splits a query skipped, but that count leaves out missing files that make a scan fail. The BE now counts both outcomes and logs which query encountered the missing file. Most of the diff tests that the diagnostics reflect the scanner's actual skip decision. ### Details - **Before and after:** Each `NOT_FOUND` reported while preparing a split, planning its physical splits, or reading a block increments the BE bvar `file_scanner_file_not_found` once. The warning records `query_id`, `path`, the original `error`, and whether the scanner `ignored` it. Repeated encounters with one path count separately. - **Configs and defaults:** `ignore_not_found_file_in_external_table` keeps its default of `true`. Eligible scans can skip the missing input. Iceberg snapshot scans still fail on a missing file. - **Impact on existing users:** Query results, returned errors, and the `NotFoundFileNum` profile counter retain their existing behavior. - **Behavior change:** Log consumers that match the previous `Skip missing file` INFO message can match `FileScanner file not found` at WARNING level for both skipped and failed scans. ### Testing - Ran the same seven scanner test cases locally against the upstream scanner and the port. They exercise real local Parquet and CSV file opens plus failures at all three reader stages. Both versions returned the expected status, EOF flag, and profile counts. The port additionally produced the exact counter deltas and warning messages, including zero for other errors and empty input. - Built the BE locally with ASAN using `./build.sh --be -j 24`. All 57 selected tests passed via `run-be-ut.sh`, including `FileScannerV2Test`, the parameterized missing-file tests, and the reader abort case. - `build-support/check-format.sh` (clang-format 16), `build-support/check-build-hygiene.sh`, and `build-support/run-clang-tidy.sh` passed locally. ### Release note Operators can track missing external scan files across queries on each BE with `file_scanner_file_not_found` and use the warning's query ID and path to investigate individual encounters. ### Check List (For Author) - Behavior changed: Yes (see Details) - Does this need documentation: No - Pre-submission status: Ready ### AI Disclosure - Tool: OpenAI Codex (GPT-6) - Generated: FileScannerV2 port, scanner tests, and this 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]
