base.select_columns

Project a subset of columns from a table. Use mode: keep (default) to retain the listed columns, or mode: drop to remove them. Accepts CSV or Parquet input and emits Parquet output.

  • Kind: standard
  • Network: no

Inputs🔗

NameTypeDescription
tablefile (Parquet, CSV accepted)Source table.
columnsstringComma-separated column names.
modestringEither keep (default) or drop.

Outputs🔗

NameTypeDescription
resultfile (Parquet)Projected table.

Example🔗

- id: 01890000-0000-0000-0000-000000000002
  name: base.select_columns
  inputs:
    - 01890000-0000-0000-0000-000000000001
  args:
    columns: "id,name,score"
    mode: "keep"