Uploaded image for project: 'Spark'
  1. Spark
  2. SPARK-32793

Expose assert_true in Python/Scala APIs and add error message parameter

    XMLWordPrintableJSON

Details

    • New Feature
    • Status: Resolved
    • Minor
    • Resolution: Fixed
    • 3.1.0
    • 3.1.0
    • SQL
    • None

    Description

      1. Add RAISEERROR() (or RAISE_ERROR()) to the API
      2. Add Scala/Python/R version of API for ASSERT_TRUE()
      3. 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
      4. Change the implementation of ASSERT_TRUE() to be rewritten during optimization to IF() instead.

      Attachments

        Activity

          People

            karenfeng Karen Feng
            karenfeng Karen Feng
            Votes:
            0 Vote for this issue
            Watchers:
            4 Start watching this issue

            Dates

              Created:
              Updated:
              Resolved: