hanyuzheng7 opened a new pull request, #23184:
URL: https://github.com/apache/flink/pull/23184

   ## What is the purpose of the change
   The hashcode function generates a hash code for a given input value, 
including support for computing hash values of binary data types. It creates a 
unique integer that represents the value passed to the function. This is an 
internal function.
   
   
   ## Brief change log
   HASHCODE for Table API
   
   ## Syntax:
   
   `HASHCODE(value)`
   
   ## Arguments:
   value: the value to be hashed.
   
   ## Returns: 
   The function returns a unique integer representing the hash code of the 
value. If the input argument is NULL, the function returns NULL.
   
   ## Verifying this change
   Because it is an internal function now, so we cannot use select 
hashcode(value) to test it, so we use ArrayInterect function test case to test 
our hashcode function
   CollectionFunctionsITCase
   
   
   ## see also:
   Java: 
https://docs.oracle.com/javase/8/docs/api/java/lang/Object.html#hashCode--
   
   Python: https://docs.python.org/3/library/functions.html#hash
   
   C#: https://docs.microsoft.com/en-us/dotnet/api/system.object.gethashcode
   
   SQL Server: 
https://docs.microsoft.com/en-us/sql/t-sql/functions/checksum-transact-sql
   
   MySQL: 
https://dev.mysql.com/doc/refman/8.0/en/encryption-functions.html#function_md5
   
   PostgreSQL: https://www.postgresql.org/docs/current/pgcrypto-hash.html
   
   Oracle: 
https://docs.oracle.com/en/database/oracle/oracle-database/19/sqlrf/ORA-HASH.html
   
   Google Cloud BigQuery: 
https://cloud.google.com/bigquery/docs/reference/standard-sql/functions-and-operators#farm_fingerprint
   
   AWS Redshift: https://docs.aws.amazon.com/redshift/latest/dg/MD5.html
   
   
   
   
   ## Does this pull request potentially affect one of the following parts:
   
     - Dependencies (does it add or upgrade a dependency): (yes / no)
     - The public API, i.e., is any changed class annotated with 
`@Public(Evolving)`: (yes / no)
     - The serializers: (yes / no / don't know)
     - The runtime per-record code paths (performance sensitive): (yes / no / 
don't know)
     - Anything that affects deployment or recovery: JobManager (and its 
components), Checkpointing, Kubernetes/Yarn, ZooKeeper: (yes / no / don't know)
     - The S3 file system connector: (yes / no / don't know)
   
   ## Documentation
   
     - Does this pull request introduce a new feature? (yes / no)
     - If yes, how is the feature documented? (not applicable / docs / JavaDocs 
/ not documented)
   


-- 
This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.

To unsubscribe, e-mail: issues-unsubscr...@flink.apache.org

For queries about this service, please contact Infrastructure at:
us...@infra.apache.org

Reply via email to