Merge pull request #12687 from lafirest/fix/iotdb

fix(iotdb): Fix function_clause when the convert value is null
This commit is contained in:
lafirest 2024-03-14 08:52:18 +08:00 committed by GitHub
commit 4f97743652
No known key found for this signature in database
GPG Key ID: B5690EEEBB952194
1 changed files with 4 additions and 0 deletions

View File

@ -544,6 +544,8 @@ convert_int(Str) when is_binary(Str) ->
_:_ ->
convert_int(binary_to_float(Str))
end;
convert_int(null) ->
null;
convert_int(undefined) ->
null.
@ -556,6 +558,8 @@ convert_float(Str) when is_binary(Str) ->
_:_ ->
convert_float(binary_to_integer(Str))
end;
convert_float(null) ->
null;
convert_float(undefined) ->
null.