title: Return the index of an item in an Array in Hive
body: <p>I have an array of released versions of a product that looks like this:</p>
  
  <pre><code>version_release    
  [1, 2, 5, 7, 8, 9]
  </code></pre>
  
  <p>I'd like to be able to find the next (or previous) version of the product knowing the version in question.</p>
  
  <p>For instance, I'm looking at version 7, the next version is 8, the previous version is 5.</p>
  
  <p>In Hive, is there a way to</p>
  
  <ol>
  <li>find the index of "7" in the array (4)</li>
  <li>increment (or decrement) that index to return "8" (index 5) or "5" (index 3), respectively?</li>
  </ol>