Showing posts with label concat_ws. Show all posts
Showing posts with label concat_ws. Show all posts

May 13, 2023

Pyspark concat() Vs concat_ws()

 

concat() vs concat_ws()

  • concat('first_name', lit(','), 'last_name') 

    • lit is mandatory

  • concat_ws(',', 'first_name', 'last_name')