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

Implement a helper method for aliasing bool_and() and bool_or()

    XMLWordPrintableJSON

Details

    • Improvement
    • Status: Resolved
    • Major
    • Resolution: Fixed
    • 3.0.0
    • 3.0.0
    • SQL
    • None

    Description

       

      A general issue in error message when the function name is just an alias name of the actual built-in function. For example, every is an alias of bool_and in Spark 3.0 

      cannot resolve 'every('true')' due to data type mismatch: Input to function 'every' should have been boolean, but it's [string].; line 1 pos 7 
      
      cannot resolve 'bool_and('true')' due to data type mismatch: Input to function 'bool_and' should have been boolean, but it's [string].; line 1 pos 7

      Attachments

        Issue Links

          Activity

            People

              aman_omer Aman Omer
              smilegator Xiao Li
              Votes:
              0 Vote for this issue
              Watchers:
              3 Start watching this issue

              Dates

                Created:
                Updated:
                Resolved: