github-actions[bot] commented on code in PR #70830:
URL: https://github.com/apache/doris/pull/70830#discussion_r4663795357
##########
fe/fe-connector/fe-connector-lance/src/main/java/org/apache/doris/connector/lance/LanceScanPlanProvider.java:
##########
@@ -99,10 +101,34 @@ final class LanceScanPlanProvider implements
ConnectorScanPlanProvider {
this.backendStorageProperties = backendStorageProperties;
}
+ /**
Review Comment:
[P2] Keep null-session count planning offline-safe. When `planScan` receives
a null session and the request is metadata-only COUNT with no filter, the new
`finally` calls `publishScan`, whose `pendingProfiles` dereferences
`session.getCatalogId()`/`getQueryId()` after the ranges have already been
computed. This changes the pre-change null-session result into an NPE;
`ConnectorStatementScopes` explicitly supports null offline sessions and other
connector tests invoke `planScan(null, ...)`. Skip profile
publication/collection when the session is null and add a regression test.
--
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]