Skip to content
This repository was archived by the owner on Nov 7, 2025. It is now read-only.

Commit 9f822e6

Browse files
authored
Tiny fix for table autodiscovery (#764)
In `config_v2` we initialize the `cfg` with `conf.IndexConfig = make(map[string]IndexConfiguration)` - therefore `nil` check is no longer relevant
1 parent d34c9a5 commit 9f822e6

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

quesma/clickhouse/table_discovery.go

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -101,7 +101,7 @@ func (td *tableDiscovery) TableDefinitionsFetchError() error {
101101
}
102102

103103
func (td *tableDiscovery) TableAutodiscoveryEnabled() bool {
104-
return td.cfg.IndexConfig == nil
104+
return len(td.cfg.IndexConfig) == 0
105105
}
106106

107107
func (td *tableDiscovery) LastAccessTime() time.Time {

0 commit comments

Comments
 (0)