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

Support Short-circuit Expression Evaluation

    XMLWordPrintableJSON

    Details

    • Type: Improvement
    • Status: Resolved
    • Priority: Major
    • Resolution: Fixed
    • Affects Version/s: None
    • Fix Version/s: 1.0.1, 1.1.0
    • Component/s: SQL
    • Labels:
      None

      Description

      Short-circuit expression evaluation impacts the performance significantly.

      e.g.
      In expression: (a>b) && (c>d), if a>b equals false or null, the expression value is false or null definitely without considering the value of sub expression c>d.

      However, if c or d contains a stateful UDF (for example, the UDF row_sequence) as its child expression, we have to evaluate the stateful expression but ignore its result.

        Attachments

          Activity

            People

            • Assignee:
              chenghao Cheng Hao
              Reporter:
              chenghao Cheng Hao
            • Votes:
              0 Vote for this issue
              Watchers:
              1 Start watching this issue

              Dates

              • Created:
                Updated:
                Resolved: