[ 
https://issues.apache.org/jira/browse/HIVE-25668?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=17437962#comment-17437962
 ] 

Stamatis Zampetakis commented on HIVE-25668:
--------------------------------------------

The reuse reasoning could be the following. The database is not destroyed at 
the end of the test and if the same type of database with the same 
initialization script and reuse enabled appears in another test then we are 
going to use the existing one.

> Support database reuse when using qt:database option
> ----------------------------------------------------
>
>                 Key: HIVE-25668
>                 URL: https://issues.apache.org/jira/browse/HIVE-25668
>             Project: Hive
>          Issue Type: Task
>          Components: Testing Infrastructure
>            Reporter: Stamatis Zampetakis
>            Priority: Major
>
> With HIVE-25594 it is possible to initialize and use various types of 
> databases in tests. At the moment all the supported databases rely on docker 
> containers which are initialized/destroyed in per test basis. This is good in 
> terms of test isolation but it brings a certain performance overhead slowing 
> down tests. At the moment it is fine since the feature it is not widely used  
> but it would be good to have a way to reuse a database in multiple qfiles. 
> The developper could specify in the qfile if they want to reuse a container 
> (if it is possible) by passing certain additional options. The declaration 
> could look like below:
> {noformat}
> --!qt:database:type=mysql;script=q_test_country_table.sql;reuse=true{noformat}



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

Reply via email to