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

Commit 3b7cce6

Browse files
authored
Discovered table should not be virtual by default (#932)
Following config ``` '*': target: [ my-clickhouse-data-source ] ``` lead to wrong decision about using `common table`
1 parent 02b8318 commit 3b7cce6

File tree

1 file changed

+2
-1
lines changed

1 file changed

+2
-1
lines changed

quesma/clickhouse/table_discovery.go

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -283,7 +283,8 @@ func (td *tableDiscovery) autoConfigureTables(tables map[string]map[string]colum
283283
} else {
284284
maybeTimestampField = td.tableTimestampField(databaseName, table, ClickHouse)
285285
}
286-
configuredTables[table] = discoveredTable{table, databaseName, columns, config.IndexConfiguration{}, comment, createTableQuery, maybeTimestampField, true}
286+
const isVirtualTable = false
287+
configuredTables[table] = discoveredTable{table, databaseName, columns, config.IndexConfiguration{}, comment, createTableQuery, maybeTimestampField, isVirtualTable}
287288

288289
}
289290
for tableName, table := range configuredTables {

0 commit comments

Comments
 (0)