Github user DylanGuedes commented on the issue:

    https://github.com/apache/spark/pull/21045
  
    @mn-mikke I thought that `CodeGenerator.getValue` was directly used to 
retrieve values from 1d arrays (such as an arraydata) - but I don't get how to 
use it for 2d arrays (such as `Seq[ArrayData[...]]`). Example:
    
    Imagine I have the `ArrayData[] $arrVals` populated with the correct 
values. How do I access the i-th element of the j-th expression? At first I 
tried `CodeGenerator.getValue("arrVals[j]", typeArray(???), "i")`. My first 
question in this case is: there's a way to eval `j` so I could write 
`CodeGenerator.getValue("arrVals["+someeval(j)+"]", typeArray(someeval(j)), 
"i")`? And the second question is: I don't think that the notion "arrVals[j]" 
works (didn't find anything similar in other uses of GetValue), so there's 
another way to access a 2d element with getValue? Maybe a getValue calling 
another getValue? oO
    
    Thank you!


---

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

Reply via email to