Reduces the input object to the given attributes. Makes no duplicate eleminition.
Either "attributes" or "paths" parameter has to be set.
Parameter
attributes:
A list of attribute names to project on.paths
: A list of paths to project on. Is only used for key value objects.
Example
PQL
Code Block |
---|
theme | Eclipse |
---|
language | javascriptpql |
---|
title | Project Operator |
---|
linenumbers | true |
---|
|
output = PROJECT({
attributes = ['auction', 'bidder']
}, input) |
...
Code Block |
---|
theme | Eclipse |
---|
language | sqlcql |
---|
title | Project Operator |
---|
linenumbers | true |
---|
|
SELECT auction, bidder FROM input |