From 4178c03d96ff2db817630d10a85733864d083c87 Mon Sep 17 00:00:00 2001 From: Peng Huo Date: Tue, 11 Jul 2023 00:01:27 -0700 Subject: [PATCH] fix flakytest when tests.locale=tr (#1827) Signed-off-by: Peng Huo --- .../java/org/opensearch/sql/protocol/response/QueryResult.java | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/protocol/src/main/java/org/opensearch/sql/protocol/response/QueryResult.java b/protocol/src/main/java/org/opensearch/sql/protocol/response/QueryResult.java index ae66364419..3ce1dd8875 100644 --- a/protocol/src/main/java/org/opensearch/sql/protocol/response/QueryResult.java +++ b/protocol/src/main/java/org/opensearch/sql/protocol/response/QueryResult.java @@ -9,6 +9,7 @@ import java.util.Collection; import java.util.Iterator; import java.util.LinkedHashMap; +import java.util.Locale; import java.util.Map; import lombok.Getter; import lombok.RequiredArgsConstructor; @@ -58,7 +59,7 @@ public Map columnNameTypes() { Map colNameTypes = new LinkedHashMap<>(); schema.getColumns().forEach(column -> colNameTypes.put( getColumnName(column), - column.getExprType().typeName().toLowerCase())); + column.getExprType().typeName().toLowerCase(Locale.ROOT))); return colNameTypes; }