Spark SQL trim,pad

df.select( ltrim(lit(" hello ")).as("ltrim"), rtrim(lit(" hello ")).as("rtrim"), trim(lit(" hello ")).as("trim"), lpad(lit("hello"),3," ").as("lp"), rpad(lit("hello"),10," ").as("rp") ).show(
相關文章
相關標籤/搜索