0
0

Delete article

Deleted articles cannot be recovered.

Draft of this article would be also deleted.

Are you sure you want to delete this article?

More than 5 years have passed since last update.

spark sqlでhiveのtableにinsertするには

Posted at
  • spark sqlではhiveqlの"insert into table 〜 values 〜"が使えない on ver.1.6.2

なので、次で回避

sqlContext.sql("insert into sandbox.test3 select t.* from (select 3, '3') t")
hive> desc test3;
OK
c1                      int                                         
c2                      string                                      
Time taken: 0.114 seconds, Fetched: 2 row(s)
hive> 

0
0
0

Register as a new user and use Qiita more conveniently

  1. You get articles that match your needs
  2. You can efficiently read back useful information
  3. You can use dark theme
What you can do with signing up
0
0

Delete article

Deleted articles cannot be recovered.

Draft of this article would be also deleted.

Are you sure you want to delete this article?