Skip to main content

remove_key

This processor removes the _key metadata value for any DataEntity or DataWindow.

Usage

Remove the _key of records

Example of a job using the remove_key processor

{
"name" : "testing",
"workers" : 1,
"slicers" : 1,
"lifecycle" : "once",
"assets" : [
"standard"
],
"operations" : [
{
"_op": "test-reader"
},
{
"_op": "remove_key"
}
]
}

Output of example job

const data = [
DataEntity.make({ name: 'chilly' }, { _key: 1 }),
]

const results = await processor.run(data);

results[0].getKey() === undefined

Parameters

ConfigurationDescriptionTypeNotes
_opName of operation, it must reflect the exact name of the fileStringrequired