removed mergeKey from map function, resolves #297

pull/301/head
Scott Anderson 2019-06-28 14:41:13 -06:00
parent a111ca9c3c
commit 4686d779b8
1 changed files with 1 additions and 9 deletions

View File

@ -21,7 +21,7 @@ _**Function type:** Transformation_
_**Output data type:** Object_
```js
map(fn: (r) => r._value * r._value), mergeKey: true)
map(fn: (r) => r._value * r._value)
```
## Parameters
@ -36,14 +36,6 @@ _**Data type:** Function_
Objects evaluated in `fn` functions are represented by `r`, short for "record" or "row".
{{% /note %}}
### mergeKey
Indicates if the record returned from `fn` should be merged with the group key.
When merging, all columns on the group key will be added to the record giving precedence to any columns already present on the record.
When not merging, only columns defined on the returned record will be present on the output records.
Defaults to `true`.
_**Data type:** Boolean_
## Important notes
#### Preserve columns