mirror of
https://github.com/ClickHouse/ClickHouse.git
synced 2024-11-10 01:25:21 +00:00
Replace LC CTE scalar integ tests by stateless tests
This commit is contained in:
parent
e9b124b4bc
commit
5f7848ffd4
@ -1,26 +0,0 @@
|
||||
import pytest
|
||||
from helpers.cluster import ClickHouseCluster
|
||||
|
||||
cluster = ClickHouseCluster(__file__)
|
||||
node = cluster.add_instance("node")
|
||||
|
||||
|
||||
@pytest.fixture(scope="module", autouse=True)
|
||||
def start_cluster():
|
||||
try:
|
||||
cluster.start()
|
||||
yield cluster
|
||||
finally:
|
||||
cluster.shutdown()
|
||||
|
||||
|
||||
def test_lc_of_string(start_cluster):
|
||||
result = node.query("WITH ( SELECT toLowCardinality('a') ) AS bar SELECT bar")
|
||||
|
||||
assert result == "a\n"
|
||||
|
||||
|
||||
def test_lc_of_int(start_cluster):
|
||||
result = node.query("WITH ( SELECT toLowCardinality(1) ) AS bar SELECT bar")
|
||||
|
||||
assert result == "1\n"
|
1
tests/queries/0_stateless/02375_scalar_lc_cte.reference
Normal file
1
tests/queries/0_stateless/02375_scalar_lc_cte.reference
Normal file
@ -0,0 +1 @@
|
||||
a
|
1
tests/queries/0_stateless/02375_scalar_lc_cte.sql
Normal file
1
tests/queries/0_stateless/02375_scalar_lc_cte.sql
Normal file
@ -0,0 +1 @@
|
||||
WITH ( SELECT toLowCardinality('a') ) AS bar SELECT bar
|
Loading…
Reference in New Issue
Block a user