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

Zoltan Haindrich commented on HIVE-11538:
-----------------------------------------

[~ashutoshc] [~wzheng] oh...it seems like this have been changed by that 
upgrade - because the initScript setting location is now inside the java code; 
the maven part defaults to setting it to an empty string (because it have to be 
passed over to surefire...) - for this reason the method which picks up the 
overriden value for  {{initScript}} threats the empty value as "not set" - 
since it is impossible to unset a property if its empty...

I always use some nonexistent initscript value ({{-DinitScript=asd.sql}}) to 
skip the initscript...now I know why - I wasn't aware that I've broken this...

I think the reason behind the need to skip the initscript is because the test 
data-dependencies are "hidden", and everything is pushed into 
q_test_init.sql...there are many datasets in there which are rarely used....1 
test usually uses only 1 dataset...I've collected a few ideas which may help 
here: https://gist.github.com/kgyrtkirk/89931b7e420c4950b7b36cc8fc1cb6a2

> Add an option to skip init script while running tests
> -----------------------------------------------------
>
>                 Key: HIVE-11538
>                 URL: https://issues.apache.org/jira/browse/HIVE-11538
>             Project: Hive
>          Issue Type: Improvement
>          Components: Testing Infrastructure
>            Reporter: Ashutosh Chauhan
>            Assignee: Ashutosh Chauhan
>             Fix For: 2.0.0
>
>         Attachments: HIVE-11538.2.patch, HIVE-11538.3.patch, HIVE-11538.patch
>
>
> {{q_test_init.sql}} has grown over time. Now, it takes substantial amount of 
> time. When debugging a particular query which doesn't need such 
> initialization, this delay is annoyance.



--
This message was sent by Atlassian JIRA
(v6.3.15#6346)

Reply via email to