in connectors/spark-tsfile/src/main/scala/org/apache/iotdb/spark/tsfile/Converter.scala [57:71]
def toSqlValue(field: Field): Any = {
if (field == null)
return null
if (field.getDataType == null)
null
else field.getDataType match {
case TSDataType.BOOLEAN => field.getBoolV
case TSDataType.INT32 => field.getIntV
case TSDataType.INT64 => field.getLongV
case TSDataType.FLOAT => field.getFloatV
case TSDataType.DOUBLE => field.getDoubleV
case TSDataType.TEXT => field.getStringValue
case other => throw new UnsupportedOperationException(s"Unsupported type $other")
}
}