[ https://issues.apache.org/jira/browse/SPARK-25967?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=16678657#comment-16678657 ]
Victor Sahin edited comment on SPARK-25967 at 11/7/18 7:13 PM: --------------------------------------------------------------- That is not very intuitive to manually specify especially for the default use when let's say someone is mining text and wants to get rid of any and all blank characters surrounding a substring Also regexp_replace is better suited for manually trimming only specific items IMO was (Author: vsahin): That is not very intuitive to manually specify especially for the default use when let's say someone is mining text and wants to get rid of any and all blank characters surrounding a substring > sql.functions.trim() should remove trailing and leading tabs > ------------------------------------------------------------ > > Key: SPARK-25967 > URL: https://issues.apache.org/jira/browse/SPARK-25967 > Project: Spark > Issue Type: Improvement > Components: SQL > Affects Versions: 2.1.0, 2.2.0, 2.3.2 > Reporter: Victor Sahin > Priority: Minor > > sql.functions.trim removes only trailing and leading whitespaces. Removing > tabs as well helps use the function for the same use case e.g. artifact > cleaning. -- This message was sent by Atlassian JIRA (v7.6.3#76005) --------------------------------------------------------------------- To unsubscribe, e-mail: issues-unsubscr...@spark.apache.org For additional commands, e-mail: issues-h...@spark.apache.org