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

UnresolvedException thrown instead of INVALID_LAMBDA_FUNCTION_CALL.NON_HIGHER_ORDER_FUNCTION

    XMLWordPrintableJSON

Details

    • Improvement
    • Status: Resolved
    • Minor
    • Resolution: Later
    • 4.0.0
    • None
    • Spark Core

    Description

      Lambdas in non-higher order functions throw 

      INVALID_LAMBDA_FUNCTION_CALL.NON_HIGHER_ORDER_FUNCTION

      , however this is only thrown from other functions, and not for all cases:

      select if(x -> x = 2, 10, 20)

       throws 

      INVALID_LAMBDA_FUNCTION_CALL.NON_HIGHER_ORDER_FUNCTION

      , but

      select if(not x -> x = 2, 10, 20) 

      throws 

      UnresolvedException

      The user error in the latter case needs improvement

      Attachments

        Issue Links

          Activity

            People

              Unassigned Unassigned
              dusantism-db Dusan Tisma
              Votes:
              0 Vote for this issue
              Watchers:
              1 Start watching this issue

              Dates

                Created:
                Updated:
                Resolved: