Skip to main content

Module concat_ws

Module concat_ws 

Source
Expand description

Spark-compatible concat_ws: joins strings (and array elements) with a separator.

Null scalar args and null array elements are skipped; a null separator yields a null row. Non-string args are coerced to STRING; list args (List, LargeList, ListView, LargeListView, FixedSizeList) expand their elements.

Differences with DataFusion core concat_ws:

  • Accepts list arguments and expands their elements
  • Always returns Utf8 (Spark’s STRING type)
  • Coerces non-string scalars (numbers, booleans, dates, …) to Utf8

Structs§

SparkConcatWs