Change * to a specific column,because if the new version of system.tables adds a new column,it will cause an identifier error

This commit is contained in:
nauu 2024-12-03 11:37:42 +08:00
parent 692926c9ab
commit 94b4a5190f

View File

@ -43,7 +43,7 @@ def test_two_new_versions(start_cluster):
query_id = str(uuid.uuid4()) query_id = str(uuid.uuid4())
current.query( current.query(
"SELECT * FROM clusterAllReplicas('test_cluster_mixed', system.tables);", "SELECT name FROM clusterAllReplicas('test_cluster_mixed', system.tables);",
query_id=query_id, query_id=query_id,
) )
@ -73,7 +73,7 @@ WHERE initial_query_id = '{query_id}';"""
query_id = str(uuid.uuid4()) query_id = str(uuid.uuid4())
backward.query( backward.query(
"SELECT * FROM clusterAllReplicas('test_cluster_mixed', system.tables)", "SELECT name FROM clusterAllReplicas('test_cluster_mixed', system.tables)",
query_id=query_id, query_id=query_id,
) )
@ -108,7 +108,7 @@ WHERE initial_query_id = '{query_id}';"""
# to the remote server. # to the remote server.
query_id = str(uuid.uuid4()) query_id = str(uuid.uuid4())
current.query( current.query(
"SELECT * FROM clusterAllReplicas('test_cluster_mixed', system.tables) SETTINGS enable_analyzer = 1;", "SELECT name FROM clusterAllReplicas('test_cluster_mixed', system.tables) SETTINGS enable_analyzer = 1;",
query_id=query_id, query_id=query_id,
) )