This is an automated email from the ASF dual-hosted git repository.
yiguolei pushed a commit to branch branch-4.0
in repository https://gitbox.apache.org/repos/asf/doris.git
The following commit(s) were added to refs/heads/branch-4.0 by this push:
new b05428cecd0 branch-4.0: [fix](schema scan) Fix NPE for schema scan
#59389 (#59405)
b05428cecd0 is described below
commit b05428cecd0ed277aab63942df51c3ab6d415106
Author: github-actions[bot]
<41898282+github-actions[bot]@users.noreply.github.com>
AuthorDate: Fri Dec 26 18:32:22 2025 +0800
branch-4.0: [fix](schema scan) Fix NPE for schema scan #59389 (#59405)
Cherry-picked from #59389
Co-authored-by: Gabriel <[email protected]>
---
.../java/org/apache/doris/service/FrontendServiceImpl.java | 12 ++++++------
1 file changed, 6 insertions(+), 6 deletions(-)
diff --git
a/fe/fe-core/src/main/java/org/apache/doris/service/FrontendServiceImpl.java
b/fe/fe-core/src/main/java/org/apache/doris/service/FrontendServiceImpl.java
index d0455ad21b1..ac43bd0e4cd 100644
--- a/fe/fe-core/src/main/java/org/apache/doris/service/FrontendServiceImpl.java
+++ b/fe/fe-core/src/main/java/org/apache/doris/service/FrontendServiceImpl.java
@@ -911,13 +911,13 @@ public class FrontendServiceImpl implements
FrontendService.Iface {
if (db != null) {
for (String tableName : tables) {
TableIf table = db.getTableNullableIfException(tableName);
- if (table.isTemporary()) {
- // because we return all table names to be,
- // so when we skip temporary table, we should add a offset
here
- tablesOffset.add(columns.size());
- continue;
- }
if (table != null) {
+ if (table.isTemporary()) {
+ // because we return all table names to be,
+ // so when we skip temporary table, we should add a
offset here
+ tablesOffset.add(columns.size());
+ continue;
+ }
table.readLock();
try {
List<Column> baseSchema = table.getBaseSchemaOrEmpty();
---------------------------------------------------------------------
To unsubscribe, e-mail: [email protected]
For additional commands, e-mail: [email protected]