[ https://issues.apache.org/jira/browse/HIVE-25398?focusedWorklogId=684269&page=com.atlassian.jira.plugin.system.issuetabpanels:worklog-tabpanel#worklog-684269 ]
ASF GitHub Bot logged work on HIVE-25398: ----------------------------------------- Author: ASF GitHub Bot Created on: 21/Nov/21 00:12 Start Date: 21/Nov/21 00:12 Worklog Time Spent: 10m Work Description: github-actions[bot] commented on pull request #2541: URL: https://github.com/apache/hive/pull/2541#issuecomment-974730531 This pull request has been automatically marked as stale because it has not had recent activity. It will be closed if no further activity occurs. Feel free to reach out on the d...@hive.apache.org list if the patch is in need of reviews. -- 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: 684269) Time Spent: 20m (was: 10m) > Converted external tables should be able to configure purge behaviour > --------------------------------------------------------------------- > > Key: HIVE-25398 > URL: https://issues.apache.org/jira/browse/HIVE-25398 > Project: Hive > Issue Type: Bug > Components: Standalone Metastore > Reporter: Panagiotis Garefalakis > Assignee: Panagiotis Garefalakis > Priority: Major > Labels: pull-request-available > Time Spent: 20m > Remaining Estimate: 0h > > Creating non-ACID MANAGED tables is not allowed on Hive, which is instead > converting these tables to External: > https://issues.apache.org/jira/browse/HIVE-22158 > During table translation both TRANSLATED_TO_EXTERNAL and > 'external.table.purge' are set to True. However, there could be the case that > the second parameter is already set in the table properties by the User. This > is ticket is adding an extra check to maintain that property if set. > PS: A cleaner solution would be to create these Tables as External directly > but there could be the case the User is taking advantage of the translation > and is expecting the data NOT to be purged! > Example: > {code:java} > -- Non-ACID table will be translated to EXTERNAL > create table c(c int) LOCATION 'etp_1' > TBLPROPERTIES('transactional'='false','external.table.purge'='false'); > insert into c values(1); > -- Maintain the purge=false property set above > desc formatted c; > select count(*) from c; > drop table c; > -- Create table in same location, data should still be there > create table c(c int) LOCATION 'etp_1' > TBLPROPERTIES('transactional'='false','external.table.purge'='false'); > desc formatted c; > select count(*) from c; > {code} -- This message was sent by Atlassian Jira (v8.20.1#820001)