From 6075a775afa9be16029042f9c2442c9b4441e882 Mon Sep 17 00:00:00 2001 From: Marios Trivyzas Date: Tue, 11 Feb 2020 18:20:41 +0100 Subject: [PATCH] SQL: [Tests] Fix integration test Fix issue with VARCHAR display size (copied from 7.x) Follows: 4797347ae8f3d2024452d150e2b84da53b990de5 --- .../org/elasticsearch/xpack/sql/qa/rest/RestSqlTestCase.java | 3 +-- 1 file changed, 1 insertion(+), 2 deletions(-) diff --git a/x-pack/plugin/sql/qa/src/main/java/org/elasticsearch/xpack/sql/qa/rest/RestSqlTestCase.java b/x-pack/plugin/sql/qa/src/main/java/org/elasticsearch/xpack/sql/qa/rest/RestSqlTestCase.java index 414cae6dd053a..c05b30d7fb2f7 100644 --- a/x-pack/plugin/sql/qa/src/main/java/org/elasticsearch/xpack/sql/qa/rest/RestSqlTestCase.java +++ b/x-pack/plugin/sql/qa/src/main/java/org/elasticsearch/xpack/sql/qa/rest/RestSqlTestCase.java @@ -175,8 +175,7 @@ public void testNextPageWithDatetimeAndTimezoneParam() throws IOException { Map response; if (i == 0) { - expected.put("columns", singletonList(columnInfo(mode, "date", "keyword", JDBCType.VARCHAR, - Integer.MAX_VALUE))); + expected.put("columns", singletonList(columnInfo(mode, "date", "keyword", JDBCType.VARCHAR, 0))); response = runSql(new StringEntity(sqlRequest, ContentType.APPLICATION_JSON), ""); } else { response = runSql(new StringEntity("{\"cursor\":\"" + cursor + "\"" + mode(mode) + "}",