<?xml version="1.0" encoding="UTF-8"?>
<rss xmlns:content="http://purl.org/rss/1.0/modules/content/" xmlns:dc="http://purl.org/dc/elements/1.1/" xmlns:rdf="http://www.w3.org/1999/02/22-rdf-syntax-ns#" xmlns:taxo="http://purl.org/rss/1.0/modules/taxonomy/" version="2.0">
  <channel>
    <title>question Hive ARRAY column INSERT INTO SELECT FROM exception in Support Questions</title>
    <link>https://community.cloudera.com/t5/Support-Questions/Hive-ARRAY-column-INSERT-INTO-SELECT-FROM-exception/m-p/341943#M233652</link>
    <description>&lt;P&gt;Is there a limit to the size of an array that can be copied using INSERT INTO SELECT FROM?&lt;/P&gt;&lt;P&gt;&lt;BR /&gt;I have several source Hive EXTERNAL tables, stored as ORC files, that have ARRAY&amp;lt;DOUBLE&amp;gt; columns.&amp;nbsp; One such table has an array with up to 8192 values.&amp;nbsp; Another table has an array with exactly 1024 values in all rows.&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;SELECTing from either table gives the expected results.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;INSERT INTO another_table SELECT FROM&amp;nbsp; source_table succeeds for the table with 1024 values, and fails with an "ArrayIndexOutOfBoundsException: 1024" for the table that has up to 8192 values in some rows.&amp;nbsp;&amp;nbsp;&lt;BR /&gt;&lt;BR /&gt;&lt;/P&gt;&lt;P&gt;I'm on HDP 3.1.4.0-315 with&amp;nbsp;HIVE 3.1.0&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Stack track snippet:&lt;/P&gt;&lt;P&gt;Caused by: java.lang.ArrayIndexOutOfBoundsException: 1024&lt;BR /&gt;at org.apache.hadoop.hive.ql.exec.vector.VectorDeserializeRow.storePrimitiveRowColumn(VectorDeserializeRow.java:568)&lt;BR /&gt;at org.apache.hadoop.hive.ql.exec.vector.VectorDeserializeRow.storeComplexFieldRowColumn(VectorDeserializeRow.java:778)&lt;BR /&gt;at org.apache.hadoop.hive.ql.exec.vector.VectorDeserializeRow.storeListRowColumn(VectorDeserializeRow.java:822)&lt;BR /&gt;at org.apache.hadoop.hive.ql.exec.vector.VectorDeserializeRow.storeRowColumn(VectorDeserializeRow.java:938)&lt;BR /&gt;at org.apache.hadoop.hive.ql.exec.vector.VectorDeserializeRow.deserialize(VectorDeserializeRow.java:1360)&lt;BR /&gt;at org.apache.hadoop.hive.ql.exec.tez.ReduceRecordSource.processVectorGroup(ReduceRecordSource.java:480)&lt;BR /&gt;... 19 more&lt;/P&gt;&lt;P&gt;&lt;BR /&gt;Thanks!&lt;/P&gt;</description>
    <pubDate>Thu, 21 Apr 2022 20:24:39 GMT</pubDate>
    <dc:creator>ToddP</dc:creator>
    <dc:date>2022-04-21T20:24:39Z</dc:date>
    <item>
      <title>Hive ARRAY column INSERT INTO SELECT FROM exception</title>
      <link>https://community.cloudera.com/t5/Support-Questions/Hive-ARRAY-column-INSERT-INTO-SELECT-FROM-exception/m-p/341943#M233652</link>
      <description>&lt;P&gt;Is there a limit to the size of an array that can be copied using INSERT INTO SELECT FROM?&lt;/P&gt;&lt;P&gt;&lt;BR /&gt;I have several source Hive EXTERNAL tables, stored as ORC files, that have ARRAY&amp;lt;DOUBLE&amp;gt; columns.&amp;nbsp; One such table has an array with up to 8192 values.&amp;nbsp; Another table has an array with exactly 1024 values in all rows.&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;SELECTing from either table gives the expected results.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;INSERT INTO another_table SELECT FROM&amp;nbsp; source_table succeeds for the table with 1024 values, and fails with an "ArrayIndexOutOfBoundsException: 1024" for the table that has up to 8192 values in some rows.&amp;nbsp;&amp;nbsp;&lt;BR /&gt;&lt;BR /&gt;&lt;/P&gt;&lt;P&gt;I'm on HDP 3.1.4.0-315 with&amp;nbsp;HIVE 3.1.0&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Stack track snippet:&lt;/P&gt;&lt;P&gt;Caused by: java.lang.ArrayIndexOutOfBoundsException: 1024&lt;BR /&gt;at org.apache.hadoop.hive.ql.exec.vector.VectorDeserializeRow.storePrimitiveRowColumn(VectorDeserializeRow.java:568)&lt;BR /&gt;at org.apache.hadoop.hive.ql.exec.vector.VectorDeserializeRow.storeComplexFieldRowColumn(VectorDeserializeRow.java:778)&lt;BR /&gt;at org.apache.hadoop.hive.ql.exec.vector.VectorDeserializeRow.storeListRowColumn(VectorDeserializeRow.java:822)&lt;BR /&gt;at org.apache.hadoop.hive.ql.exec.vector.VectorDeserializeRow.storeRowColumn(VectorDeserializeRow.java:938)&lt;BR /&gt;at org.apache.hadoop.hive.ql.exec.vector.VectorDeserializeRow.deserialize(VectorDeserializeRow.java:1360)&lt;BR /&gt;at org.apache.hadoop.hive.ql.exec.tez.ReduceRecordSource.processVectorGroup(ReduceRecordSource.java:480)&lt;BR /&gt;... 19 more&lt;/P&gt;&lt;P&gt;&lt;BR /&gt;Thanks!&lt;/P&gt;</description>
      <pubDate>Thu, 21 Apr 2022 20:24:39 GMT</pubDate>
      <guid>https://community.cloudera.com/t5/Support-Questions/Hive-ARRAY-column-INSERT-INTO-SELECT-FROM-exception/m-p/341943#M233652</guid>
      <dc:creator>ToddP</dc:creator>
      <dc:date>2022-04-21T20:24:39Z</dc:date>
    </item>
    <item>
      <title>Re: Hive ARRAY column INSERT INTO SELECT FROM exception</title>
      <link>https://community.cloudera.com/t5/Support-Questions/Hive-ARRAY-column-INSERT-INTO-SELECT-FROM-exception/m-p/342052#M233681</link>
      <description>&lt;P&gt;Hi&amp;nbsp;&lt;a href="https://community.cloudera.com/t5/user/viewprofilepage/user-id/89793"&gt;@ToddP&lt;/a&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Can you try after setting below?&lt;/P&gt;&lt;LI-CODE lang="java"&gt;set hive.vectorized.execution.enabled=false;&lt;/LI-CODE&gt;</description>
      <pubDate>Fri, 22 Apr 2022 18:31:11 GMT</pubDate>
      <guid>https://community.cloudera.com/t5/Support-Questions/Hive-ARRAY-column-INSERT-INTO-SELECT-FROM-exception/m-p/342052#M233681</guid>
      <dc:creator>rpathak</dc:creator>
      <dc:date>2022-04-22T18:31:11Z</dc:date>
    </item>
    <item>
      <title>Re: Hive ARRAY column INSERT INTO SELECT FROM exception</title>
      <link>https://community.cloudera.com/t5/Support-Questions/Hive-ARRAY-column-INSERT-INTO-SELECT-FROM-exception/m-p/342199#M233702</link>
      <description>&lt;P&gt;That worked! Thanks!&lt;BR /&gt;&lt;BR /&gt;Cloudera suggested a patch to Hive found here:&amp;nbsp;&lt;A href="https://issues.apache.org/jira/browse/HIVE-23501" target="_blank"&gt;https://issues.apache.org/jira/browse/HIVE-23501&lt;/A&gt;&lt;BR /&gt;&lt;BR /&gt;But this is much easier! Thanks again!&lt;/P&gt;</description>
      <pubDate>Mon, 25 Apr 2022 13:04:08 GMT</pubDate>
      <guid>https://community.cloudera.com/t5/Support-Questions/Hive-ARRAY-column-INSERT-INTO-SELECT-FROM-exception/m-p/342199#M233702</guid>
      <dc:creator>ToddP</dc:creator>
      <dc:date>2022-04-25T13:04:08Z</dc:date>
    </item>
  </channel>
</rss>

