Caideyipi opened a new pull request, #18039: URL: https://github.com/apache/iotdb/pull/18039
## Description This PR improves metadata/query-analysis OOM diagnostics when result-set column expansion or schema fetch runs out of memory. Changes: - Track matched, expanded, generated, and schema-fetch deserialized result columns in `MPPQueryContext`. - Enrich `MemoryNotEnoughException` during metadata analysis with column counts, SLIMIT/SOFFSET, ALIGN BY DEVICE guidance, memory shortage, and estimated exceeded columns. - Record column counts during expression expansion and schema fetch batch deserialization. - Add `MPPQueryContextTest` coverage for enriched result-column and schema-fetch OOM messages, plus the no-context fallback path. ## Verification - `mvn spotless:apply -pl iotdb-core/datanode` - `git diff --check` - `mvn "-Ddevelocity.off=true" test -pl iotdb-core/datanode -Dtest=MPPQueryContextTest` currently fails before running tests during datanode main-source compilation because of pre-existing/unrelated missing symbols in `AstBuilder`, `DataNodeMemoryConfig`, `TableConfigTaskVisitor`, `DatasetHeaderFactory`, `ShowCreate*Task`, and `DataRegionConsensusImpl`. -- 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]
