[ 
https://issues.apache.org/jira/browse/HIVE-19503?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel
 ]

Peter Vary updated HIVE-19503:
------------------------------
    Status: Patch Available  (was: Open)

The patch contains 2 tests:
 * Test which checks if the JDO cache is able to handle directSql partition 
drops
 * Test which checks if the directSQL partition drop removes every connected 
data from the RDBMS tables.

To create these tests we have 2 helper methods:
 * Method to create the partitioned table
 * Method to check the number of rows in a given RDBMS table

Added a new {{ObjectStore.dropPartitionsInternal}} method which only visible 
for testing so we can make sure that the dropPartition is using directSql and 
does not fall back to JDO.

Fixed a problem where some of the tables are not created automatically by the 
tests, adding new init queries to {{MetaStoreDirectSql.ensureDbInit}} method

> Create a test that checks that every table is empty after a dropTable 
> happened with directSql
> ---------------------------------------------------------------------------------------------
>
>                 Key: HIVE-19503
>                 URL: https://issues.apache.org/jira/browse/HIVE-19503
>             Project: Hive
>          Issue Type: Improvement
>          Components: Test
>    Affects Versions: 3.1.0
>            Reporter: Peter Vary
>            Assignee: Peter Vary
>            Priority: Major
>         Attachments: HIVE-19503.patch
>
>
> As a followup jira, it might be good to check that every RDBMS table is empty 
> after a dropTable happened with DirectSQL



--
This message was sent by Atlassian JIRA
(v7.6.3#76005)

Reply via email to