Skip to content

Non-local tables appear twice in show tables, dolt workbench. #10283

@lkp80877984

Description

@lkp80877984

Hello,

We are using non-local tables described in https://www.dolthub.com/blog/2025-10-06-nonlocal-tables/. You can repro the oddity I'm seeing by simply:

  • connect
  • create a fresh database, create database test;
  • create a table, create table foo ( id int auto_increment primary key );
  • observe that the table is listed once by show tables
  • make it non-local, with insert into dolt_nonlocal_tables (table_name, target_ref, options) values ('f*', 'main', 'immediate');
  • observe that the table is now listed TWICE by show tables
mysql> show tables;
+----------------+
| Tables_in_test |
+----------------+
| foo            |
| foo            |
+----------------+
2 rows in set (0.00 sec)

dolt workbench also lists the table table twice, presumably because it does similar things to get a listing of all tables.

Is this expected behaviour?

Cheers,
Luke

Metadata

Metadata

Assignees

Type

No type

Projects

No projects

Milestone

No milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions