Replace LC CTE scalar integ tests by stateless tests

This commit is contained in:
Arthur Passos 2022-08-02 09:30:54 -03:00
parent e9b124b4bc
commit 5f7848ffd4
4 changed files with 2 additions and 26 deletions

View File

@ -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"

View File

@ -0,0 +1 @@
a

View File

@ -0,0 +1 @@
WITH ( SELECT toLowCardinality('a') ) AS bar SELECT bar