Skip to content

hash

relationalai.semantics.std.common
hash(*args: Value) -> Expression

Compute a hash value for the given arguments.

  • *args

    (Value, default: ()) - Values to hash together.
  • Expression - An Expression representing the computed hash value. Returns Hash.

Compute hash of a single value:

>>> select(common.hash(Person.email))

Compute hash of multiple values together:

>>> select(common.hash(Order.customer_id, Order.order_date))