...
Code Block |
---|
{"q":["hello", "world"]} |
Column reference example:
d- |
---|
...
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 | Name of column, function 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.
...