| PREHOOK: query: DESCRIBE FUNCTION tinyint |
| PREHOOK: type: DESCFUNCTION |
| POSTHOOK: query: DESCRIBE FUNCTION tinyint |
| POSTHOOK: type: DESCFUNCTION |
| tinyint(x) - converts it's parameter to tinyint |
| PREHOOK: query: DESCRIBE FUNCTION EXTENDED tinyint |
| PREHOOK: type: DESCFUNCTION |
| POSTHOOK: query: DESCRIBE FUNCTION EXTENDED tinyint |
| POSTHOOK: type: DESCFUNCTION |
| tinyint(x) - converts it's parameter to tinyint |
| Synonyms: udftobyte |
| - x is NULL -> NULL |
| - byte, short, integer, long, float, double, decimal, timestamp: |
| x fits into the type tinyint -> integer part of x |
| undefined otherwise |
| - boolean: |
| true -> 1 |
| false -> 0 |
| - string: |
| x is a valid integer -> x |
| NULL otherwise |
| Example: |
| > SELECT tinyint(true); |
| 1 |
| Function class:org.apache.hadoop.hive.ql.udf.UDFToByte |
| Function type:BUILTIN |