3
我从嵌套地图获取值,很难确定每个值的数据类型。有没有可以告诉我每个值的数据类型的typeof
函数?查找Presto中的值的数据类型
我从嵌套地图获取值,很难确定每个值的数据类型。有没有可以告诉我每个值的数据类型的typeof
函数?查找Presto中的值的数据类型
是的,有typeof
功能:
presto> select typeof(1), typeof('a');
_col0 | _col1
---------+------------
integer | varchar(1)
(1 row)
https://prestodb.io/docs/current/functions/conversion.html也许这可以帮助。 – skadoosh