mirror of
https://github.com/ClickHouse/ClickHouse.git
synced 2024-11-26 01:22:04 +00:00
First portion
This commit is contained in:
parent
dab71c93b7
commit
ed9ee5ab4c
27
tests/queries/0_stateless/03033_with_fill_interpolate.sql
Normal file
27
tests/queries/0_stateless/03033_with_fill_interpolate.sql
Normal file
@ -0,0 +1,27 @@
|
||||
-- https://github.com/ClickHouse/ClickHouse/issues/55794
|
||||
DROP TABLE IF EXISTS 03033_example_table;
|
||||
|
||||
CREATE TABLE 03033_example_table
|
||||
(
|
||||
ColumnA Int64,
|
||||
ColumnB Int64,
|
||||
ColumnC Int64
|
||||
)
|
||||
ENGINE = MergeTree()
|
||||
ORDER BY ColumnA;
|
||||
|
||||
WITH
|
||||
helper AS (
|
||||
SELECT
|
||||
*
|
||||
FROM
|
||||
03033_example_table
|
||||
ORDER BY
|
||||
ColumnA WITH FILL INTERPOLATE (
|
||||
ColumnB AS ColumnC,
|
||||
ColumnC AS ColumnA
|
||||
)
|
||||
)
|
||||
SELECT ColumnB FROM helper;
|
||||
|
||||
DROP TABLE IF EXISTS 03033_example_table;
|
7
tests/queries/0_stateless/03034_normalized_ast.sql
Normal file
7
tests/queries/0_stateless/03034_normalized_ast.sql
Normal file
@ -0,0 +1,7 @@
|
||||
-- https://github.com/ClickHouse/ClickHouse/issues/49472
|
||||
SELECT
|
||||
concat(database, table) AS name,
|
||||
count()
|
||||
FROM clusterAllReplicas(default, system.tables)
|
||||
GROUP BY name
|
||||
FORMAT Null;
|
@ -0,0 +1,43 @@
|
||||
-- https://github.com/ClickHouse/ClickHouse/issues/44414
|
||||
DROP TABLE IF EXISTS alias_bug;
|
||||
DROP TABLE IF EXISTS alias_bug_dist;
|
||||
CREATE TABLE alias_bug
|
||||
(
|
||||
`src` String,
|
||||
`theAlias` String ALIAS trimBoth(src)
|
||||
)
|
||||
ENGINE = MergeTree()
|
||||
ORDER BY src;
|
||||
|
||||
CREATE TABLE alias_bug_dist
|
||||
AS alias_bug
|
||||
ENGINE = Distributed('default', currentDatabase(), 'alias_bug', rand());
|
||||
|
||||
INSERT INTO alias_bug VALUES ('SOURCE1');
|
||||
|
||||
-- OK
|
||||
SELECT theAlias,CAST(NULL, 'Nullable(String)') AS src FROM alias_bug LIMIT 1 FORMAT Null;
|
||||
|
||||
-- Not OK
|
||||
SELECT theAlias,CAST(NULL, 'Nullable(String)') AS src FROM alias_bug_dist LIMIT 1 FORMAT Null;
|
||||
|
||||
DROP TABLE IF EXISTS alias_bug;
|
||||
DROP TABLE IF EXISTS alias_bug_dist;
|
||||
CREATE TABLE alias_bug
|
||||
(
|
||||
`s` String,
|
||||
`src` String,
|
||||
`theAlias` String ALIAS trimBoth(src)
|
||||
)
|
||||
ENGINE = MergeTree()
|
||||
ORDER BY src;
|
||||
|
||||
CREATE TABLE alias_bug_dist
|
||||
AS alias_bug
|
||||
ENGINE = Distributed('default', currentDatabase(), 'alias_bug', rand());
|
||||
|
||||
-- Unknown identifier
|
||||
SELECT CAST(123, 'String') AS src,theAlias FROM alias_bug_dist LIMIT 1 FORMAT Null;
|
||||
|
||||
DROP TABLE IF EXISTS alias_bug;
|
||||
DROP TABLE IF EXISTS alias_bug_dist;
|
20
tests/queries/0_stateless/03036_with_numbers.reference
Normal file
20
tests/queries/0_stateless/03036_with_numbers.reference
Normal file
@ -0,0 +1,20 @@
|
||||
0
|
||||
1
|
||||
2
|
||||
3
|
||||
4
|
||||
5
|
||||
6
|
||||
7
|
||||
8
|
||||
9
|
||||
0
|
||||
1
|
||||
2
|
||||
3
|
||||
4
|
||||
5
|
||||
6
|
||||
7
|
||||
8
|
||||
9
|
8
tests/queries/0_stateless/03036_with_numbers.sql
Normal file
8
tests/queries/0_stateless/03036_with_numbers.sql
Normal file
@ -0,0 +1,8 @@
|
||||
-- https://github.com/ClickHouse/ClickHouse/issues/13843
|
||||
WITH 10 AS n
|
||||
SELECT *
|
||||
FROM numbers(n);
|
||||
|
||||
WITH cast(10, 'UInt64') AS n
|
||||
SELECT *
|
||||
FROM numbers(n);
|
Loading…
Reference in New Issue
Block a user