From ad627c7eab97e9b536cad65f8ccd691150973930 Mon Sep 17 00:00:00 2001 From: Andrei Stefan Date: Tue, 18 Aug 2020 12:17:15 +0300 Subject: [PATCH] Introduce ordering in the constant_keyword test for better predictibility. (#61248) (#61252) (cherry picked from commit 69193f9de8178dbaa1d8467f1686b100dd2b161c) --- .../xpack/sql/qa/jdbc/PreparedStatementTestCase.java | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/x-pack/plugin/sql/qa/jdbc/src/main/java/org/elasticsearch/xpack/sql/qa/jdbc/PreparedStatementTestCase.java b/x-pack/plugin/sql/qa/jdbc/src/main/java/org/elasticsearch/xpack/sql/qa/jdbc/PreparedStatementTestCase.java index 8db94e634f4..10b23994dd8 100644 --- a/x-pack/plugin/sql/qa/jdbc/src/main/java/org/elasticsearch/xpack/sql/qa/jdbc/PreparedStatementTestCase.java +++ b/x-pack/plugin/sql/qa/jdbc/src/main/java/org/elasticsearch/xpack/sql/qa/jdbc/PreparedStatementTestCase.java @@ -233,7 +233,7 @@ public abstract class PreparedStatementTestCase extends JdbcIntegrationTestCase } try (Connection connection = esJdbc()) { - try (PreparedStatement statement = connection.prepareStatement("SELECT id, text FROM test WHERE text = ?")) { + try (PreparedStatement statement = connection.prepareStatement("SELECT id, text FROM test WHERE text = ? ORDER BY id")) { statement.setString(1, text); try (ResultSet results = statement.executeQuery()) {