# sha512

Return SHA-512 digest of binary column(`bytes` type) as hex string

## Signature

> SHA512(bytesCol)

## Usage Examples

These examples are based on the [Real time Quick Start](https://docs.pinot.apache.org/release-0.10.0/basics/getting-started/quick-start#realtime).

```sql
select event_id, location, SHA512(location) AS hash
from meetupRsvp 
limit 1
```

| event\_id | location                           | hash                                                                                                                             |
| --------- | ---------------------------------- | -------------------------------------------------------------------------------------------------------------------------------- |
| 282776561 | 80406178a3d70a3d714041d5c28f5c28f6 | 06cc4532755995fc1661f4195f3c67440471eba809a321635cda988a09e8bb66fd040713b1a88320bb70d6bd24443e5128527a178503e6c21d2c70438f02d103 |

{% hint style="info" %}
The row returned will be different if you run this example as the data is ingested in real-time.
{% endhint %}
