You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
{{ message }}
Repository navigation
[FORMATTING] ClickHouse: ASOF LEFT JOIN and ANY LEFT JOIN are split into two lines #989
SELECT a FROM t1 ASOF LEFT JOIN t2 ONt1.k=t2.kANDt1.t>=t2.t ANY LEFT JOIN t3 USING (k)
Options: { language: 'clickhouse' }
Expected Output
SELECT
a
FROM
t1
ASOF LEFT JOIN t2 ONt1.k=t2.kANDt1.t>=t2.t
ANY LEFT JOIN t3 USING (k)
Actual Output
SELECT
a
FROM
t1 ASOF
LEFT JOIN t2 ONt1.k=t2.kANDt1.t>=t2.t ANY
LEFT JOIN t3 USING (k)
Usage
format(sql, { language: 'clickhouse' })
ClickHouse. The dialect only knows the join strictness after the join type (LEFT ASOF JOIN, LEFT ANY JOIN). ClickHouse also accepts it before the join type and documents it that way: ASOF LEFT JOIN in the ASOF JOIN section, and ANY LEFT JOIN in an example on the same page. So ASOF and ANY are left at the end of the previous line.
Activity
MunMunMiao commentedon Oct 14, 2026
Closing for now: I'm going to handle the formatting on my side instead. Thanks for the library.