You are viewing a plain text version of this content. The canonical link for it is here.
Posted to issues@spark.apache.org by "Wenchen Fan (Jira)" <ji...@apache.org> on 2026/06/04 03:57:00 UTC
[jira] [Resolved] (SPARK-57190) Fix API inconsistency for 4-argument regexp_replace
[ https://issues.apache.org/jira/browse/SPARK-57190?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel ]
Wenchen Fan resolved SPARK-57190.
---------------------------------
Fix Version/s: 4.3.0
Resolution: Fixed
Issue resolved by pull request 56240
[https://github.com/apache/spark/pull/56240]
> Fix API inconsistency for 4-argument regexp_replace
> ---------------------------------------------------
>
> Key: SPARK-57190
> URL: https://issues.apache.org/jira/browse/SPARK-57190
> Project: Spark
> Issue Type: Bug
> Components: SQL
> Affects Versions: 4.2.0, 4.1.1, 4.1.2, 4.1.3
> Reporter: Pranav Chintareddy
> Assignee: Pranav Chintareddy
> Priority: Major
> Labels: pull-request-available
> Fix For: 4.3.0
>
>
> Spark SQL supports the 4-argument form of `regexp_replace`: regexp_replace(str, regexp, replacement, position)
> However, the corresponding Scala, PySpark, and Spark Connect APIs currently expose only the 3-argument variants.
> As a result, functionality available through SQL cannot be accessed through the public APIs, creating an inconsistency between SQL and programmatic interfaces.
> This improvement adds support for the optional `position` argument in:
> * Scala API
> * PySpark API
> * Spark Connect API
> and adds corresponding Scala, PySpark, and Connect test coverage.
> The underlying SQL functionality already exists; this change aligns the public APIs with existing SQL capabilities.
--
This message was sent by Atlassian Jira
(v8.20.10#820010)
---------------------------------------------------------------------
To unsubscribe, e-mail: issues-unsubscribe@spark.apache.org
For additional commands, e-mail: issues-help@spark.apache.org