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

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

    Details

    • Type: Bug
    • Status: Resolved
    • Priority: Major
    • Resolution: Fixed
    • Affects Version/s: 2.3.0
    • Fix Version/s: 2.3.0
    • Component/s: SQL
    • Labels:
      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

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

              Dates

              • Created:
                Updated:
                Resolved: