doc-exports/docs/dli/sqlreference/dli_spark_javahash.html
Su, Xiaomeng 76a5b1ee83 dli_sqlreference_20240227
Reviewed-by: Pruthi, Vineet <vineet.pruthi@t-systems.com>
Co-authored-by: Su, Xiaomeng <suxiaomeng1@huawei.com>
Co-committed-by: Su, Xiaomeng <suxiaomeng1@huawei.com>
2024-03-27 22:02:33 +00:00

4.3 KiB

javahash

This function is used to return the hash value of a.

Syntax

javahash(string a)

Parameters

Table 1 Parameter

Parameter

Mandatory

Type

Description

a

Yes

STRING

Data whose hash value needs to be returned

Return Values

The return value is of the STRING type.

The hash value is returned. If the value of a is null, an error is reported.

Example Code

The value 48690 is returned.

select javahash("123");

The value 123 is returned.

select javahash(123);