[ https://issues.apache.org/jira/browse/HIVE-15199?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=15684283#comment-15684283 ]
Steve Loughran commented on HIVE-15199: --------------------------------------- you are right, I am wrong: serves me right for commenting without staring at the code. you should be calling; I got confused by naming. you should be invoking {code} RemoteIterator<LocatedFileStatus> listFiles(Path f, boolean recursive) {Code} with recursive = true. this defaults to a standard recursive treewalk; on object stores we can do an O(1) listing of all child files, irrespective of directory depth and width. For anything other than a flat directory, this is a significant speedup > INSERT INTO data on S3 is replacing the old rows with the new ones > ------------------------------------------------------------------ > > Key: HIVE-15199 > URL: https://issues.apache.org/jira/browse/HIVE-15199 > Project: Hive > Issue Type: Bug > Components: Hive > Reporter: Sergio Peña > Assignee: Sergio Peña > Priority: Critical > Attachments: HIVE-15199.1.patch, HIVE-15199.2.patch, > HIVE-15199.3.patch, HIVE-15199.4.patch, HIVE-15199.5.patch, > HIVE-15199.6.patch, HIVE-15199.7.patch > > > Any INSERT INTO statement run on S3 tables and when the scratch directory is > saved on S3 is deleting old rows of the table. > {noformat} > hive> set hive.blobstore.use.blobstore.as.scratchdir=true; > hive> create table t1 (id int, name string) location 's3a://spena-bucket/t1'; > hive> insert into table t1 values (1,'name1'); > hive> select * from t1; > 1 name1 > hive> insert into table t1 values (2,'name2'); > hive> select * from t1; > 2 name2 > {noformat} -- This message was sent by Atlassian JIRA (v6.3.4#6332)