[fix](Insert select tvf) fix NPE because tvf do not have catalog name (#25149)

This commit is contained in:
Tiewei Fang
2023-10-09 18:02:43 +08:00
committed by GitHub
parent d02ef36631
commit 977d119545
3 changed files with 121 additions and 0 deletions

View File

@ -1312,6 +1312,9 @@ public class StmtRewriter {
}
continue;
}
if (!(tableRef instanceof BaseTableRef)) {
continue;
}
TableIf table = tableRef.getTable();
String dbName = tableRef.getName().getDb();
if (dbName == null) {