[fix](Insert select tvf) fix NPE because tvf do not have catalog name (#25149)
This commit is contained in:
@ -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) {
|
||||
|
||||
Reference in New Issue
Block a user