mirror of
https://github.com/ClickHouse/ClickHouse.git
synced 2024-12-16 19:32:07 +00:00
0324770773
sed -r -i \ -e 's/SELECT $/SELECT/' \ -e 's/SELECT DISTINCT $/SELECT DISTINCT/' \ -e 's/WITH $/WITH/' \ # zero matches, new test will be added -e 's/ARRAY JOIN $/ARRAY JOIN/' \ -e 's/GROUP BY $/GROUP BY/' \ -e 's/ORDER BY $/ORDER BY/' \ -e 's/LIMIT ([0-9]+) BY $/LIMIT \1 BY/' \ # zero matches, new test will be added tests/queries/*/*.sql \ tests/queries/*/*.reference (With except for tests/queries/0_stateless/00751_default_databasename_for_view.reference)
46 lines
1.1 KiB
SQL
46 lines
1.1 KiB
SQL
WITH 'abb' AS b, 'abc' AS c, 'abd' AS d, toFixedString(b, 5) AS bf, toFixedString(c, 5) AS cf, toFixedString(d, 5) AS df
|
|
SELECT
|
|
b = b, b > b, b < b,
|
|
b = c, b > c, b < c,
|
|
b = d, b > d, b < d,
|
|
b = bf, b > bf, b < bf,
|
|
b = cf, b > cf, b < cf,
|
|
b = df, b > df, b < df,
|
|
|
|
c = b, c > b, c < b,
|
|
c = c, c > c, c < c,
|
|
c = d, c > d, c < d,
|
|
c = bf, c > bf, c < bf,
|
|
c = cf, c > cf, c < cf,
|
|
c = df, c > df, c < df,
|
|
|
|
d = b, d > b, d < b,
|
|
d = c, d > c, d < c,
|
|
d = d, d > d, d < d,
|
|
d = bf, d > bf, d < bf,
|
|
d = cf, d > cf, d < cf,
|
|
d = df, d > df, d < df,
|
|
|
|
bf = b, bf > b, bf < b,
|
|
bf = c, bf > c, bf < c,
|
|
bf = d, bf > d, bf < d,
|
|
bf = bf, bf > bf, bf < bf,
|
|
bf = cf, bf > cf, bf < cf,
|
|
bf = df, bf > df, bf < df,
|
|
|
|
cf = b, cf > b, cf < b,
|
|
cf = c, cf > c, cf < c,
|
|
cf = d, cf > d, cf < d,
|
|
cf = bf, cf > bf, cf < bf,
|
|
cf = cf, cf > cf, cf < cf,
|
|
cf = df, cf > df, cf < df,
|
|
|
|
df = b, df > b, df < b,
|
|
df = c, df > c, df < c,
|
|
df = d, df > d, df < d,
|
|
df = bf, df > bf, df < bf,
|
|
df = cf, df > cf, df < cf,
|
|
df = df, df > df, df < df
|
|
|
|
FORMAT Vertical;
|