qiaojialin commented on a change in pull request #1305:
URL: https://github.com/apache/incubator-iotdb/pull/1305#discussion_r435333070
##########
File path:
server/src/main/java/org/apache/iotdb/db/utils/TypeInferenceUtils.java
##########
@@ -65,6 +64,9 @@ public static TSDataType getPredictedDataType(Object value,
boolean inferType) {
} else {
return floatingStringInferType;
}
+ // "NaN" is returned if the NaN Literal is given in Parser
+ } else if ("NaN".equals(strValue)) {
+ return TSDataType.DOUBLE;
Review comment:
You could add nan_string_infer_type=DOUBLE in
server/src/assembly/resources/conf/iotdb-engine.properties, Then add itmes in
IoTDBDescriptor and IoTDBConfig class.
After adding this, the docs should be updated in
docs/UserGuide/Server/Config Manual.md.
I will add some system design doc for how to do these things.
----------------------------------------------------------------
This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.
For queries about this service, please contact Infrastructure at:
[email protected]