<?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 Re: Hive INSERT OVERWRITE struct NoMatchingMethodException in Archives of Support Questions (Read Only)</title>
    <link>https://community.cloudera.com/t5/Archives-of-Support-Questions/Hive-INSERT-OVERWRITE-struct-NoMatchingMethodException/m-p/157613#M53199</link>
    <description>&lt;P&gt;If I remove the * and instead do the following I get a different error:&lt;/P&gt;&lt;PRE&gt;INSERT OVERWRITE TABLE tweetsORC SELECT racist, contributors, coordinates, created_at, entities, favorite_count, favorited, filter_level, geo, id,id_str, in_reply_to_screen_name, in_reply_to_status_id, in_reply_to_status_id_str, in_reply_to_user_id, in_reply_to_user_id_str, is_quote_status, lang, place, possibly_sensitive, retweet_count, retweeted, source, text, timestamp_ms, truncated, userFROM tweets;&lt;/PRE&gt;</description>
    <pubDate>Wed, 08 Feb 2017 22:49:08 GMT</pubDate>
    <dc:creator>ed_day</dc:creator>
    <dc:date>2017-02-08T22:49:08Z</dc:date>
    <item>
      <title>Hive INSERT OVERWRITE struct NoMatchingMethodException</title>
      <link>https://community.cloudera.com/t5/Archives-of-Support-Questions/Hive-INSERT-OVERWRITE-struct-NoMatchingMethodException/m-p/157612#M53198</link>
      <description>&lt;P&gt;I have a Hive table &lt;STRONG&gt;tweets&lt;/STRONG&gt; stored as text that I am trying to write to another table &lt;STRONG&gt;tweetsORC&lt;/STRONG&gt; that is ORC. Both have the same structure:&lt;/P&gt;&lt;PRE&gt;col_name	data_type	comment
racist              	boolean             	from deserializer   
contributors        	string              	from deserializer   
coordinates         	string              	from deserializer   
created_at          	string              	from deserializer   
entities            	struct&amp;lt;hashtags:array&amp;lt;string&amp;gt;,symbols:array&amp;lt;string&amp;gt;,urls:array&amp;lt;struct&amp;lt;display_url:string,expanded_url:string,indices:array&amp;lt;tinyint&amp;gt;,url:string&amp;gt;&amp;gt;,user_mentions:array&amp;lt;string&amp;gt;&amp;gt;	from deserializer   
favorite_count      	tinyint             	from deserializer   
favorited           	boolean             	from deserializer   
filter_level        	string              	from deserializer   
geo                 	string              	from deserializer   
id                  	bigint              	from deserializer   
id_str              	string              	from deserializer   
in_reply_to_screen_name	string              	from deserializer   
in_reply_to_status_id	string              	from deserializer   
in_reply_to_status_id_str	string              	from deserializer   
in_reply_to_user_id 	string              	from deserializer   
in_reply_to_user_id_str	string              	from deserializer   
is_quote_status     	boolean             	from deserializer   
lang                	string              	from deserializer   
place               	string              	from deserializer   
possibly_sensitive  	boolean             	from deserializer   
retweet_count       	tinyint             	from deserializer   
retweeted           	boolean             	from deserializer   
source              	string              	from deserializer   
text                	string              	from deserializer   
timestamp_ms        	string              	from deserializer   
truncated           	boolean             	from deserializer   
user                	struct&amp;lt;contributors_enabled:boolean,created_at:string,default_profile:boolean,default_profile_image:boolean,description:string,favourites_count:tinyint,follow_request_sent:string,followers_count:tinyint,following:string,friends_count:tinyint,geo_enabled:boolean,id:bigint,id_str:string,is_translator:boolean,lang:string,listed_count:tinyint,location:string,name:string,notifications:string,profile_background_color:string,profile_background_image_url:string,profile_background_image_url_https:string,profile_background_tile:boolean,profile_image_url:string,profile_image_url_https:string,profile_link_color:string,profile_sidebar_border_color:string,profile_sidebar_fill_color:string,profile_text_color:string,profile_use_background_image:boolean,protected:boolean,screen_name:string,statuses_count:smallint,time_zone:string,url:string,utc_offset:string,verified:boolean&amp;gt;	from deserializer 
&lt;/PRE&gt;&lt;P&gt;When I try to insert from &lt;STRONG&gt;tweets&lt;/STRONG&gt; to &lt;STRONG&gt;tweetsORC&lt;/STRONG&gt; I get:&lt;/P&gt;&lt;PRE&gt;INSERT OVERWRITE TABLE tweetsORC SELECT * FROM tweets;
FAILED: NoMatchingMethodException No matching method for class org.apache.hadoop.hive.ql.udf.UDFToString with (struct&amp;lt;hashtags:array&amp;lt;string&amp;gt;,symbols:array&amp;lt;string&amp;gt;,urls:array&amp;lt;struct&amp;lt;display_url:string,expanded_url:string,indices:array&amp;lt;tinyint&amp;gt;,url:string&amp;gt;&amp;gt;,user_mentions:array&amp;lt;string&amp;gt;&amp;gt;). Possible choices: _FUNC_(bigint)  _FUNC_(binary)  _FUNC_(boolean)  _FUNC_(date)  _FUNC_(decimal(38,18))  _FUNC_(double)  _FUNC_(float)  _FUNC_(int)  _FUNC_(smallint)  _FUNC_(string)  _FUNC_(timestamp)  _FUNC_(tinyint)  _FUNC_(void)  
&lt;/PRE&gt;&lt;P&gt;The only help I have found on this kind of problem says to make a UDF use primitive types, but I am not using a UDF! Any help is much appreciated!&lt;/P&gt;&lt;P&gt;FYI: Hive version:&lt;/P&gt;&lt;PRE&gt;Hive 1.2.1000.2.4.2.0-258
Subversion git://u12-slave-5708dfcd-10/grid/0/jenkins/workspace/HDP-build-ubuntu12/bigtop/output/hive/hive-1.2.1000.2.4.2.0 -r 240760457150036e13035cbb82bcda0c65362f3a
&lt;/PRE&gt;</description>
      <pubDate>Thu, 02 Feb 2017 18:47:41 GMT</pubDate>
      <guid>https://community.cloudera.com/t5/Archives-of-Support-Questions/Hive-INSERT-OVERWRITE-struct-NoMatchingMethodException/m-p/157612#M53198</guid>
      <dc:creator>ed_day</dc:creator>
      <dc:date>2017-02-02T18:47:41Z</dc:date>
    </item>
    <item>
      <title>Re: Hive INSERT OVERWRITE struct NoMatchingMethodException</title>
      <link>https://community.cloudera.com/t5/Archives-of-Support-Questions/Hive-INSERT-OVERWRITE-struct-NoMatchingMethodException/m-p/157613#M53199</link>
      <description>&lt;P&gt;If I remove the * and instead do the following I get a different error:&lt;/P&gt;&lt;PRE&gt;INSERT OVERWRITE TABLE tweetsORC SELECT racist, contributors, coordinates, created_at, entities, favorite_count, favorited, filter_level, geo, id,id_str, in_reply_to_screen_name, in_reply_to_status_id, in_reply_to_status_id_str, in_reply_to_user_id, in_reply_to_user_id_str, is_quote_status, lang, place, possibly_sensitive, retweet_count, retweeted, source, text, timestamp_ms, truncated, userFROM tweets;&lt;/PRE&gt;</description>
      <pubDate>Wed, 08 Feb 2017 22:49:08 GMT</pubDate>
      <guid>https://community.cloudera.com/t5/Archives-of-Support-Questions/Hive-INSERT-OVERWRITE-struct-NoMatchingMethodException/m-p/157613#M53199</guid>
      <dc:creator>ed_day</dc:creator>
      <dc:date>2017-02-08T22:49:08Z</dc:date>
    </item>
    <item>
      <title>Re: Hive INSERT OVERWRITE struct NoMatchingMethodException</title>
      <link>https://community.cloudera.com/t5/Archives-of-Support-Questions/Hive-INSERT-OVERWRITE-struct-NoMatchingMethodException/m-p/157614#M53200</link>
      <description>&lt;P&gt;How is this an answer to your question ?&lt;/P&gt;</description>
      <pubDate>Fri, 10 Feb 2017 02:46:58 GMT</pubDate>
      <guid>https://community.cloudera.com/t5/Archives-of-Support-Questions/Hive-INSERT-OVERWRITE-struct-NoMatchingMethodException/m-p/157614#M53200</guid>
      <dc:creator>dineshc</dc:creator>
      <dc:date>2017-02-10T02:46:58Z</dc:date>
    </item>
  </channel>
</rss>

