mirror of
https://github.com/apache/impala.git
synced 2026-02-01 12:00:22 -05:00
The use of HDFS API was incorrect when creating an empty file in the new base dir during truncate. Simply calling Create(Path) does create the file in HDFS, but it is only created on S3 when the returned stream is closed. Testing: - Acid truncate tests are not running on S3 as they need a running Hive server. Aded a regression test that will run on S3 too. It would be nice to run all tests on S3, but this is out of the scope of this change. Change-Id: I96d315638b669c5c7198a8e47939cb2b236e35bb Reviewed-on: http://gerrit.cloudera.org:8080/15940 Reviewed-by: Impala Public Jenkins <impala-public-jenkins@cloudera.com> Tested-by: Impala Public Jenkins <impala-public-jenkins@cloudera.com>
12 lines
308 B
Plaintext
12 lines
308 B
Plaintext
====
|
|
---- QUERY
|
|
# Regression test for IMPALA-9753. The issue only comes on S3, where no Hive is avaliable.
|
|
create table tt (x int) tblproperties (
|
|
'transactional'='true',
|
|
'transactional_properties'='insert_only');
|
|
insert into tt values (1);
|
|
truncate table tt;
|
|
select count(*) from tt;
|
|
---- RESULTS
|
|
0
|
|
==== |