Converts a string literal to a number literal.
Syntax
string_to_number(string)
Usage
If the conversion fails, this function returns null.
Example
1-- creates a field called "Number" that contains the number 12345
2
3q = foreach q generate string_to_number("12345" ) as 'Number';