[ 
https://issues.apache.org/jira/browse/HIVE-25325?focusedWorklogId=624796&page=com.atlassian.jira.plugin.system.issuetabpanels:worklog-tabpanel#worklog-624796
 ]

ASF GitHub Bot logged work on HIVE-25325:
-----------------------------------------

                Author: ASF GitHub Bot
            Created on: 20/Jul/21 08:12
            Start Date: 20/Jul/21 08:12
    Worklog Time Spent: 10m 
      Work Description: kuczoram commented on a change in pull request #2471:
URL: https://github.com/apache/hive/pull/2471#discussion_r672904844



##########
File path: 
iceberg/iceberg-handler/src/test/queries/positive/truncate_force_iceberg_table.q
##########
@@ -0,0 +1,20 @@
+set hive.vectorized.execution.enabled=false;
+
+drop table if exists test_truncate;
+create external table test_truncate (id int, value string) stored by iceberg 
stored as parquet;
+alter table test_truncate set tblproperties('external.table.purge'='false');
+insert into test_truncate values (1, 
'one'),(2,'two'),(3,'three'),(4,'four'),(5,'five'); 
+insert into test_truncate values (6, 'six'), (7, 'seven');
+insert into test_truncate values (8, 'eight'), (9, 'nine'), (10, 'ten');
+analyze table test_truncate compute statistics;
+
+select * from test_truncate order by id;

Review comment:
       Oh yeah, you're right. I always forget it. I changed the tests.




-- 
This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.

To unsubscribe, e-mail: gitbox-unsubscr...@hive.apache.org

For queries about this service, please contact Infrastructure at:
us...@infra.apache.org


Issue Time Tracking
-------------------

    Worklog Id:     (was: 624796)
    Time Spent: 3h  (was: 2h 50m)

> Add TRUNCATE TABLE support for Hive Iceberg tables
> --------------------------------------------------
>
>                 Key: HIVE-25325
>                 URL: https://issues.apache.org/jira/browse/HIVE-25325
>             Project: Hive
>          Issue Type: Improvement
>            Reporter: Marta Kuczora
>            Assignee: Marta Kuczora
>            Priority: Major
>              Labels: pull-request-available
>             Fix For: 4.0.0
>
>          Time Spent: 3h
>  Remaining Estimate: 0h
>
> Implement the TRUNCATE operation for Hive Iceberg tables. Since these tables 
> are unpartitioned in Hive, only the truncate unpartitioned table use case has 
> to be supported.



--
This message was sent by Atlassian Jira
(v8.3.4#803005)

Reply via email to