This is an automated email from the ASF dual-hosted git repository.
haonan pushed a commit to branch master
in repository https://gitbox.apache.org/repos/asf/iotdb.git
The following commit(s) were added to refs/heads/master by this push:
new b309f71b95 [IOTDB-3836] REST API for data type in a case-insensitive
(#6684)
b309f71b95 is described below
commit b309f71b959044cda2c5c37ca96bf89c69fbd640
Author: CloudWise-Lukemiao
<[email protected]>
AuthorDate: Fri Jul 15 20:24:27 2022 +0800
[IOTDB-3836] REST API for data type in a case-insensitive (#6684)
---
.../db/protocol/mpprest/handler/StatementConstructionHandler.java | 3 ++-
1 file changed, 2 insertions(+), 1 deletion(-)
diff --git
a/server/src/main/java/org/apache/iotdb/db/protocol/mpprest/handler/StatementConstructionHandler.java
b/server/src/main/java/org/apache/iotdb/db/protocol/mpprest/handler/StatementConstructionHandler.java
index 60ebe292ab..49f13a26ed 100644
---
a/server/src/main/java/org/apache/iotdb/db/protocol/mpprest/handler/StatementConstructionHandler.java
+++
b/server/src/main/java/org/apache/iotdb/db/protocol/mpprest/handler/StatementConstructionHandler.java
@@ -28,6 +28,7 @@ import org.apache.iotdb.tsfile.utils.BitMap;
import java.nio.charset.StandardCharsets;
import java.util.List;
+import java.util.Locale;
public class StatementConstructionHandler {
private StatementConstructionHandler() {}
@@ -50,7 +51,7 @@ public class StatementConstructionHandler {
TSDataType[] dataTypes = new TSDataType[columnSize];
for (int i = 0; i < columnSize; i++) {
- dataTypes[i] = TSDataType.valueOf(rawDataType.get(i));
+ dataTypes[i] =
TSDataType.valueOf(rawDataType.get(i).toUpperCase(Locale.ROOT));
}
for (int columnIndex = 0; columnIndex < columnSize; columnIndex++) {