I'm using UDF function of TDengine database .
but seems output type is differnt as defined
this is the output:
According to this https://docs.tdengine.com/taos-sql/udf/
TDengine database UDF demo bit_and is INT type
but your "current" is float or double type .
I guess this is the reason