Skip to content

Commit

Permalink
3
Browse files Browse the repository at this point in the history
  • Loading branch information
xinyiZzz committed Dec 31, 2024
1 parent 51bf946 commit 482e4bf
Showing 1 changed file with 8 additions and 1 deletion.
Original file line number Diff line number Diff line change
Expand Up @@ -303,7 +303,14 @@ public void getTablesSchema(VectorSchemaRoot vectorSchemaRoot, boolean includeSc
for (TTableStatus tableStatus : listTableStatusResult.getTables()) {
catalogNameVector.setSafe(tablesCount, new Text(catalogName));
schemaNameVector.setSafe(tablesCount, new Text(dbName));
tableNameVector.setSafe(tablesCount, new Text(tableStatus.getName()));
// DBeaver uses `Arrow Flight SQL JDBC Driver Core [16.1.0]` driver to connect to Doris.
// The metadata only shows one layer of `Tables`. All tables will be displayed together,
// so the database name and table name are spelled together for distinction.
// When DBeaver uses `MySQL Connector/J [mysql-connector-j-8.2.0` driver to connect to Doris,
// the metadata will show two layers of `Databases - Tables`.
//
// TODO, show two layers of original data `Databases - Tables` in DBeaver.
tableNameVector.setSafe(tablesCount, new Text(dbName + ":" + tableStatus.getName()));
tableTypeVector.setSafe(tablesCount, new Text(tableStatus.getType()));
if (includeSchema) {
List<Field> fields = tableToFields.get(tableStatus.getName());
Expand Down

0 comments on commit 482e4bf

Please sign in to comment.