addColumn#

swordfish.function.addColumn()#

Add a column or columns to a table. It is the only way to add a column to a stream table, a DFS table, or a dimension table.

Parameters:
  • table (Constant) – A table of any type, including an in-memory table, a stream table, a DFS table, or a dimension table.

  • colNames (Constant) – A STRING scalar/vector indicating the name(s) of the column(s) to be added.

  • colTypes (Constant) – A calar/vector indicating the data type(s) of the column(s) to be added.