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

CodegenContext.splitExpressions() creates incorrect results with global variable arguments

    XMLWordPrintableJSON

Details

    • Bug
    • Status: Resolved
    • Major
    • Resolution: Fixed
    • 2.3.0
    • 2.3.0
    • SQL
    • None

    Description

      CodegenContext.splitExpressions() creates incorrect results with arguments that were declared as global variable.

      class Test {
        int global1;
      
        void splittedFunction(int global1) {
          ...
          global1 = 2;
        }
      
        void apply() {
          global1 = 1;
          ...
          splittedFunction(global1);
          // global1 should be 2
        }
      }
      

      Attachments

        Activity

          People

            cloud_fan Wenchen Fan
            kiszk Kazuaki Ishizaki
            Votes:
            0 Vote for this issue
            Watchers:
            4 Start watching this issue

            Dates

              Created:
              Updated:
              Resolved: