mirror of
https://github.com/tencentmusic/supersonic.git
synced 2025-12-11 12:07:42 +00:00
@@ -67,8 +67,8 @@ public class DataSourceNode extends SemanticNode {
|
|||||||
String tb = entry.getKey();
|
String tb = entry.getKey();
|
||||||
String db = "";
|
String db = "";
|
||||||
if (entry.getKey().indexOf(".") > 0) {
|
if (entry.getKey().indexOf(".") > 0) {
|
||||||
db = entry.getKey().substring(0, entry.getKey().indexOf("."));
|
db = entry.getKey().substring(0, entry.getKey().lastIndexOf("."));
|
||||||
tb = entry.getKey().substring(entry.getKey().indexOf(".") + 1);
|
tb = entry.getKey().substring(entry.getKey().lastIndexOf(".") + 1);
|
||||||
}
|
}
|
||||||
addSchemaTable(scope, datasource, db, tb, entry.getValue());
|
addSchemaTable(scope, datasource, db, tb, entry.getValue());
|
||||||
}
|
}
|
||||||
|
|||||||
Reference in New Issue
Block a user