Github user cloud-fan commented on the issue:

    https://github.com/apache/spark/pull/19518
  
    can we use `32767` as array size upper bound? e.g.
    ```
    class Foo {
      int[] globalVars1 = new int[32767];
      int[] globalVars2 = new int[32767];
      int[] globalVars3 = new int[32767];
      ...
    
      void apply0(InternalRow i) {
        globalVars1[0] = 1;
        globalVars1[1] = 1;
        ...
      }
      void apply1(InternalRow i) {
        globalVars2[0] = 1;
        globalVars2[1] = 1;
        ...
      }
    
      void apply(InternalRow i) {
        apply0(i);
        apply1(i);
        ...
      }
    }
    ```


---

---------------------------------------------------------------------
To unsubscribe, e-mail: reviews-unsubscr...@spark.apache.org
For additional commands, e-mail: reviews-h...@spark.apache.org

Reply via email to