Quantcast
Channel: Hortonworks » All Replies
Viewing all articles
Browse latest Browse all 3435

Reply To: can Hive support select query in the insert statements

$
0
0

Right, this won’t work in Hive 0.14.  For that you’ll have to do:

insert into table t1 select c3 from t2;

if there are columns in t1 that you don’t want to select values for, you can assign a null in the select list.  For example say that t1 has columns c1 and c2 and you only want a value in c1, then you could do:

insert into table t1 select c3, null from t2;


Viewing all articles
Browse latest Browse all 3435

Trending Articles



<script src="https://jsc.adskeeper.com/r/s/rssing.com.1596347.js" async> </script>