Skip to main content

Hash

Create a hash of a column.

Parameters​

NameDescriptionAccepted ValuesDefaultRequired
I/O
inputName of input column.string, integer, array—Yes
outputName of new column.string, array—Yes
Options
methodThe method to use to hash the input (Default: md5).string; one of:
  • md5
  • sha1
  • sha256
  • sha512
"md5"No
Conditions
ifCondition that determines whether the wrangle runs as a whole. Recipe variables may be referenced with ${variable}.string—No
whereFilter rows before applying the wrangle using SQL-like criteria, such as column1 = 123 OR column2 = 'abc'.string—No
where_paramsValues used with where for parameterized criteria. Uses SQLite placeholder syntax such as ? or :name.array, object—No

Examples​

wrangles:
- create.hash:
input: Description
output: hash
method: md5
Description
The wrench is blue
The hammer is yellow
New Column
ce114e4501d2f4e2dcea3e17b546f339
a54d88e06612d820bc3be72877c74f257b561b19
Access
RequirementValue
AI-poweredNo
Requires WrangleWorks accountNo
Requires subscriptionNo
Requires external API keyNo
Technical details
FieldValue
Catalog ID16
Catalog keycreate.hash
Recipe keycreate.hash
Catalog statusactive
Lifecycle statusactive
Recipe Writer eligibleYes
Namespacecreate
Documentation groupcreate
AliasesNone
Runtime symbolwrangles.recipe_wrangles.create.hash
Legacy UUID11e8fc13-00d2-4779-8d87-6288b07de7e7

Sources