You are viewing a plain text version of this content. The canonical link for it is here.
Posted to issues@spark.apache.org by "Hyukjin Kwon (Jira)" <ji...@apache.org> on 2020/10/08 03:09:00 UTC

[jira] [Resolved] (SPARK-32793) Expose assert_true in Python/Scala APIs and add error message parameter

     [ https://issues.apache.org/jira/browse/SPARK-32793?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel ]

Hyukjin Kwon resolved SPARK-32793.
----------------------------------
    Fix Version/s: 3.1.0
       Resolution: Fixed

Issue resolved by pull request 29947
[https://github.com/apache/spark/pull/29947]

> Expose assert_true in Python/Scala APIs and add error message parameter
> -----------------------------------------------------------------------
>
>                 Key: SPARK-32793
>                 URL: https://issues.apache.org/jira/browse/SPARK-32793
>             Project: Spark
>          Issue Type: New Feature
>          Components: SQL
>    Affects Versions: 3.1.0
>            Reporter: Karen Feng
>            Assignee: Karen Feng
>            Priority: Minor
>             Fix For: 3.1.0
>
>
> # Add RAISEERROR() (or RAISE_ERROR()) to the API
>  # Add Scala/Python/R version of API for ASSERT_TRUE()
>  # Add an extra parameter to ASSERT_TRUE() as (cond, message), and for which the `message` parameter is only lazily evaluated when the condition is not true
>  # Change the implementation of ASSERT_TRUE() to be rewritten during optimization to IF() instead.



--
This message was sent by Atlassian Jira
(v8.3.4#803005)

---------------------------------------------------------------------
To unsubscribe, e-mail: issues-unsubscribe@spark.apache.org
For additional commands, e-mail: issues-help@spark.apache.org