Apache Tajo - digest(input text, method text)



Let us now check the digest(string,method) function with the following query.

Query

default> select digest('tutorialspoint','sha1') as SHA; 

Result

The above query will generate the following result.

sha 
------------------------------- 
43aeef3e6b34a52281c6f7ce49f43a94e009dda5 

The query returns the Digest hash value for the string “tutorialspoint”. Sha1 is a hash method. This can be used in hashing techniques.

apache_tajo_string_functions.htm
Advertisements