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

Children expressions of Hive UDF impacts the determinism of Hive UDF

    XMLWordPrintableJSON

Details

    • Bug
    • Status: Resolved
    • Major
    • Resolution: Fixed
    • 2.0.2, 2.1.0
    • 2.1.1, 2.2.0
    • SQL
    • None

    Description

        /**
         * Certain optimizations should not be applied if UDF is not deterministic.
         * Deterministic UDF returns same result each time it is invoked with a
         * particular input. This determinism just needs to hold within the context of
         * a query.
         *
         * @return true if the UDF is deterministic
         */
        boolean deterministic() default true;
      

      Based on the definition o UDFType, when Hive UDF's children are non-deterministic, Hive UDF is also non-deterministic.

      Attachments

        Activity

          People

            smilegator Xiao Li
            smilegator Xiao Li
            Votes:
            0 Vote for this issue
            Watchers:
            2 Start watching this issue

            Dates

              Created:
              Updated:
              Resolved: