From 042ccf424c3a41faf02661d5a5813cdc49b67238 Mon Sep 17 00:00:00 2001 From: Andres Taylor Date: Wed, 10 Jul 2024 11:40:10 +0200 Subject: [PATCH] pin to specific version Signed-off-by: Andres Taylor --- .../endtoend/vtgate/queries/aggregation/aggregation_test.go | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/go/test/endtoend/vtgate/queries/aggregation/aggregation_test.go b/go/test/endtoend/vtgate/queries/aggregation/aggregation_test.go index 323962e1a0c..1683e1e50f5 100644 --- a/go/test/endtoend/vtgate/queries/aggregation/aggregation_test.go +++ b/go/test/endtoend/vtgate/queries/aggregation/aggregation_test.go @@ -403,7 +403,9 @@ func TestOrderByCount(t *testing.T) { mcmp.Exec("insert into t9(id1, id2, id3) values(1, '1', '1'), (2, '2', '2'), (3, '2', '2'), (4, '3', '3'), (5, '3', '3'), (6, '3', '3')") mcmp.Exec("SELECT t9.id2 FROM t9 GROUP BY t9.id2 ORDER BY COUNT(t9.id2) DESC") - if utils.BinaryIsAtVersion(18, "vtgate") { + version, err := cluster.GetMajorVersion("vtgate") + require.NoError(t, err) + if version == 18 { mcmp.Exec("select COUNT(*) from (select 1 as one FROM t9 WHERE id3 = 3 ORDER BY id1 DESC LIMIT 3 OFFSET 0) subquery_for_count") } }