Skip to content

Commit

Permalink
Remove LIVE VIEW check
Browse files Browse the repository at this point in the history
  • Loading branch information
Diamondy4 committed Jan 10, 2024
1 parent 46fb834 commit 0959d4b
Showing 1 changed file with 2 additions and 11 deletions.
13 changes: 2 additions & 11 deletions lib/db/clickhouse.js
Original file line number Diff line number Diff line change
Expand Up @@ -198,17 +198,8 @@ const initialize = async function (dbName) {

const checkCapabilities = async () => {
logger.info('Checking clickhouse capabilities')
try {
await axios.post(getClickhouseUrl() + '/?allow_experimental_live_view=1',
`CREATE LIVE VIEW IF NOT EXISTS ${clickhouseOptions.queryOptions.database}.lvcheck AS SELECT 1`)
await axios.post(getClickhouseUrl() + '/?allow_experimental_live_view=1',
`DROP VIEW IF EXISTS ${clickhouseOptions.queryOptions.database}.lvcheck`)
capabilities.liveView = !isCustomSamplesOrderingRule()
logger.info('LIVE VIEW: supported')
} catch (e) {
logger.info('LIVE VIEW: unsupported')
capabilities.liveView = false
}
// qryn doesn't use LIVE VIEW after ClickHouse dropped WITH TIMEOUT clause support
capabilities.liveView = false
}

const reloadFingerprints = function () {
Expand Down

0 comments on commit 0959d4b

Please sign in to comment.