...
Code Block |
---|
{"q":["hello", "world"]} |
Column reference example:
d-code |
---|
derive type:single value:FILTEROBJECT(myObjects, '[k1,k2]') as:'k-values' |
Output: Generates a new k-values
column containing an Object of key-value pairs for all instances of the k1
and k2
keys.
d-s | ||
---|---|---|
|
D code |
---|
derive type:single value:FILTEROBJECT(obj,'keys') |
Argument | Required? | Data Type | Description |
---|---|---|---|
obj_col | Y | String or Object | Function Name of column, function returning an Object, or Object literal to be filtered |
keys | Y | Array | Array representing the keys to filter. Each element can be a String, function returning a String, or a reference to a column of String values. |
D s lang notes |
---|
obj_col
Object literal, name of the Object column, or function returning an Object whose keys you want to extract into an array.
...
Required? | Data Type | Example Value |
---|---|---|
Yes | Object literal, function, or functioncolumn reference | myObj |
keys
This parameter contains an Array of Strings, each of which represents a key whose values are to be returned with the key as the output of the function.
...