Skip to main content

Special Statements

This page covers KQL syntax elements that don't fit neatly into a single function category — including inline data tables, duration literals, dynamic values, verbatim strings, pipe composition, and a few preprocessing transformations the compiler applies automatically before parsing.

Legend: ✅ Supported · ⚠️ Approximated · ❌ Not Supported · 🔄 Rewritten

FeatureSQLiteMySQLClickHousePostgreSQLNotes
datatableCREATE TEMP TABLE + INSERT INTO
Bare duration literals (e.g. 1d)⚠️SQLite: warning emitted; no INTERVAL type
dynamic({}) / dynamic([])Rendered as JSON string constant
Verbatim strings @"..."Unescaped string literals
Pipe chaining (|)Each pipe stage wraps as subquery when needed
datetime(bare-date) preprocessingAuto-quoted before parsing
between(datetime() .. datetime()) preprocessingRewritten to >= / <= before parsing

Dialect Summary

The table below gives a high-level view of which SQL capabilities are available per dialect, which shapes what KQL features are achievable.

CapabilitySQLiteMySQLClickHousePostgreSQL
ILIKE operator
RIGHT JOIN
FULL OUTER JOIN
Native regex
extractAll / regex capture groups
Temp tables
CTEs (WITH)
Array unnesting
String concat style||concat()concat()||
Date arithmetic stylemodifier stringDATE_ADDsubtract* functionsINTERVAL expression
Regex match stylenoneREGEXP_LIKEmatch()~ tilde operator