BigQuery Sqids/Hashids Support #21
olliebennett
started this conversation in
Show and tell
Replies: 0 comments
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Uh oh!
There was an error while loading. Please reload this page.
Uh oh!
There was an error while loading. Please reload this page.
-
We use BigQuery (from Google Cloud Platform) as our data lake, and use Hashids for our user-facing IDs.
Since BigQuery allows running JavaScript functions we can simply use that implementation in-line in the query.
Note
This is implementation is (legacy) Hashids and not Sqids, although the process should be very similar for Sqids.
To achieve the below, I adapted code from hashids.js with changes;
BigQuery Implementation;
Beta Was this translation helpful? Give feedback.
All reactions