From 837d3ab39877f299453077bb508c6c2b746be99f Mon Sep 17 00:00:00 2001 From: Peng Huo Date: Mon, 10 Jul 2023 14:57:50 -0700 Subject: [PATCH] fix flakytest when tests.locale=tr 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; }