You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Copy file name to clipboardExpand all lines: connectors/spark-iotdb-table-connector/spark-iotdb-table-common/src/main/scala/org/apache/iotdb/spark/table/db/IoTDBUtils.scala
+7-1Lines changed: 7 additions & 1 deletion
Original file line number
Diff line number
Diff line change
@@ -127,7 +127,13 @@ object IoTDBUtils {
127
127
caseBinaryType=>TSDataType.BLOB
128
128
caseDateType=>TSDataType.DATE
129
129
caseTimestampType=>TSDataType.STRING
130
-
case _ =>TSDataType.STRING
130
+
case _ => {
131
+
varerrMsg=s"Unable to convert Spark data type $sparkDataType to IoTDB data type."
132
+
if (sparkDataType.simpleString.toLowerCase.contains("decimal")) {
133
+
errMsg +=s"For float numbers in insert into values sql, you should add the suffix 'f' or 'd' to represent float or double."
Copy file name to clipboardExpand all lines: connectors/spark-iotdb-table-connector/spark-iotdb-table-common/src/main/scala/org/apache/iotdb/spark/table/db/write/IoTDBDataWriter.scala
0 commit comments