SPRKPY1091
pyspark.sql.functions.concat_ws
Message: The pyspark.sql.functions.concat_ws function does not convert aliases to uppercase or enclose them in double quotes.
Category: Warning
Description
The converted _concat_ws_ignore_nulls function capitalizes the column alias and encloses it in double quotes.
Scenario
Input
This snippet will show the data frame in the console.
Output
When inspecting the output code in the console, the _concat_ws_ignore_nulls function returns the column with its alias in uppercase and enclosed in double quotes.
Recommended fix
As of now there is not a direct fix for this difference. However, you can manually change the alias names to upper cases to avoid any issues with case sensitivity. And be aware that the alias is also wrapped in double quotes.
Additional recommendations
Last updated