I'm getting values from nested maps and it's hard to figure out what data type each value is. Is there a typeof
function that can tell me the data type of each value?
Asked
Active
Viewed 1.8k times
15

Manfred Moser
- 29,539
- 13
- 92
- 123

Leo Jiang
- 24,497
- 49
- 154
- 284
-
2https://prestodb.io/docs/current/functions/conversion.html maybe this could help. – skadoosh Sep 19 '17 at 10:17
1 Answers
20
Yes, there is the typeof
function:
presto> select typeof(1), typeof('a');
_col0 | _col1
---------+------------
integer | varchar(1)
(1 row)

Piotr Findeisen
- 19,480
- 2
- 52
- 82