提交 f627d814 authored 作者: Owner's avatar Owner

Workaround for null schemaName issue

上级 d26f68eb
......@@ -1102,7 +1102,6 @@ public class Parser {
schemaName = session.getCurrentSchemaName();
}
Schema schema = getSchema();
String savedSchemaName = schemaName;
MergeUsing command = new MergeUsing(oldCommand);
currentPrepared = command;
......@@ -5159,6 +5158,10 @@ public class Parser {
} finally {
session.removeLocalTempTable(recursiveTable);
}
//TODO: Why and where is the schema name being reset I shouldn't have to do this
if(getSchema()==null){
schemaName = schema.getName();
}
TableView view = createTemporarySessionView(tempViewName, querySQLOutput[0], columnTemplateList,true/*allowRecursiveQueryDetection*/, true);
return view;
}
......
Markdown 格式
0%
您添加了 0 到此讨论。请谨慎行事。
请先完成此评论的编辑!
注册 或者 后发表评论