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

AssertOnQuery.condition should be consistent in requiring Boolean return type

    XMLWordPrintableJSON

Details

    • Bug
    • Status: Resolved
    • Major
    • Resolution: Fixed
    • None
    • 2.0.1, 2.1.0
    • Structured Streaming
    • None

    Description

      AssertOnQuery has two apply constructor: one that accepts a closure that returns boolean, and another that accepts a closure that returns Unit. This is actually very confusing because developers could mistakenly think that AssertOnQuery always require a boolean return type and verifies the return result, when indeed the value of the last statement is ignored in one of the constructors.

      Attachments

        Activity

          People

            petermaxlee Peter Lee
            petermaxlee Peter Lee
            Votes:
            0 Vote for this issue
            Watchers:
            2 Start watching this issue

            Dates

              Created:
              Updated:
              Resolved: