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 2023/02/01 01:17:00 UTC
[jira] [Resolved] (SPARK-42191) Support udf luhn_check
[ https://issues.apache.org/jira/browse/SPARK-42191?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel ]
Wenchen Fan resolved SPARK-42191.
---------------------------------
Fix Version/s: 3.5.0
Resolution: Fixed
Issue resolved by pull request 39747
[https://github.com/apache/spark/pull/39747]
> Support udf luhn_check
> -----------------------
>
> Key: SPARK-42191
> URL: https://issues.apache.org/jira/browse/SPARK-42191
> Project: Spark
> Issue Type: Sub-task
> Components: SQL
> Affects Versions: 3.4.0
> Reporter: Vinod KC
> Assignee: Vinod KC
> Priority: Minor
> Fix For: 3.5.0
>
>
> Support UDF to check if a given number string is a valid Luhn number. It shall return true if the number string is a valid Luhn number, and false otherwise.
> This checksum function is widely applied to credit card numbers and government identification numbers to distinguish valid numbers from mistyped, incorrect numbers
> Ref : [trino|https://trino.io/docs/current/functions/string.html]
> [Algorithm|https://en.wikipedia.org/wiki/Luhn_algorithm]
--
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