-
Notifications
You must be signed in to change notification settings - Fork 480
Closed
Copy link
Labels
QA : PassedRelease : 26.01.30-01Team : FalcondotCMS : AnalyticsData and Analytics UmbrellaData and Analytics Umbrella
Description
Description
When initializing ClickHouse using the init.sql script, Materialized Views (MVs) are being created without an explicit database prefix and without a USE statement.
As a result:
• Tables are correctly created under clickhouse_test_db
• Materialized Views are created in the default database (usually default)
• Running SHOW TABLES; inside clickhouse_test_db does not list the MVs, causing confusion and operational issues
This behavior is due to ClickHouse defaulting to the current session database when the MV name is not fully qualified.
Acceptance Criteria
- All Materialized Views are created under clickhouse_test_db
SHOW TABLES FROM clickhouse_test_db;lists all expected MVsinit.sqlexplicitly controls database context (via USE or fully qualified names)
Priority
Medium
Additional Context
- Add
USE clickhouse_test_db;afterCREATE DATABASE IF NOT EXISTS - Fully Qualify MV names (e.g. clickhouse_test_db.content_events_counter_mv)
Metadata
Metadata
Assignees
Labels
QA : PassedRelease : 26.01.30-01Team : FalcondotCMS : AnalyticsData and Analytics UmbrellaData and Analytics Umbrella
Type
Projects
Status
Done