Berserk Docs
Tabular OperatorsProject Operators

project-away

Selects all columns from the input except the specified columns.

Syntax

project-away column, ...

Remove specified columns from output

Parameters

NameDescription
columnColumn name to exclude from output

Examples

Example 1 — Remove a single column

datatable(warrior:string, voyages:long, weapon:string, clan:string)[
  "Ragnar", 42, "axe", "Lothbrok",
  "Bjorn", 31, "sword", "Lothbrok"
]
| project-away clan
warrior (string)voyages (long)weapon (string)
Bjorn31sword
Ragnar42axe

Example 2 — Remove multiple columns

datatable(warrior:string, voyages:long, weapon:string, clan:string)[
  "Ragnar", 42, "axe", "Lothbrok",
  "Bjorn", 31, "sword", "Lothbrok"
]
| project-away voyages, clan
warrior (string)weapon (string)
Bjornsword
Ragnaraxe

On this page