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

Hive QA commented on HIVE-22890:
--------------------------------



Here are the results of testing the latest attachment:
https://issues.apache.org/jira/secure/attachment/12993564/HIVE-22890.patch

{color:green}SUCCESS:{color} +1 due to 1 test(s) being added or modified.

{color:green}SUCCESS:{color} +1 due to 17994 tests passed

Test results: 
https://builds.apache.org/job/PreCommit-HIVE-Build/20667/testReport
Console output: https://builds.apache.org/job/PreCommit-HIVE-Build/20667/console
Test logs: http://104.198.109.242/logs/PreCommit-HIVE-Build-20667/

Messages:
{noformat}
Executing org.apache.hive.ptest.execution.TestCheckPhase
Executing org.apache.hive.ptest.execution.PrepPhase
Executing org.apache.hive.ptest.execution.YetusPhase
Executing org.apache.hive.ptest.execution.ExecutionPhase
Executing org.apache.hive.ptest.execution.ReportingPhase
{noformat}

This message is automatically generated.

ATTACHMENT ID: 12993564 - PreCommit-HIVE-Build

> Repl load fails if table name contains _function
> ------------------------------------------------
>
>                 Key: HIVE-22890
>                 URL: https://issues.apache.org/jira/browse/HIVE-22890
>             Project: Hive
>          Issue Type: Bug
>            Reporter: Aasha Medhi
>            Assignee: Aasha Medhi
>            Priority: Major
>              Labels: pull-request-available
>         Attachments: HIVE-22890.patch, HIVE-22890.patch
>
>          Time Spent: 10m
>  Remaining Estimate: 0h
>
> Repl load tries to load function if table name contains _function. Similarly 
> for the below contants
> {code:java}
> public static final String FUNCTIONS_ROOT_DIR_NAME = "_functions";
> {code}
> The code just checks for contains(FUNCTIONS_ROOT_DIR_NAME). So even if any 
> table or db name contains _functions, it takes the Function Load flow and 
> fails.
>  
> {code:java}
> org.apache.hadoop.hive.ql.parse.SemanticException: Invalid 
> pathorg.apache.hadoop.hive.ql.parse.SemanticException: Invalid path at 
> org.apache.hadoop.hive.ql.exec.repl.bootstrap.load.LoadFunction.tasks(LoadFunction.java:94)
>  ~[hive-exec-3.1.0.3.1.5.1-2.jar:3.1.1000-SNAPSHOT] at 
> org.apache.hadoop.hive.ql.exec.repl.ReplLoadTask.executeBootStrapLoad(ReplLoadTask.java:238)
>  ~[hive-exec-3.1.0.3.1.5.1-2.jar:3.1.1000-SNAPSHOT] at 
> org.apache.hadoop.hive.ql.exec.repl.ReplLoadTask.execute(ReplLoadTask.java:110)
>  ~[hive-exec-3.1.0.3.1.5.1-2.jar:3.1.1000-SNAPSHOT] at 
> org.apache.hadoop.hive.ql.exec.Task.executeTask(Task.java:212) 
> ~[hive-exec-3.1.0.3.1.5.1-2.jar:3.1.1000-SNAPSHOT] at 
> org.apache.hadoop.hive.ql.exec.TaskRunner.runSequential(TaskRunner.java:103) 
> ~[hive-exec-3.1.0.3.1.5.1-2.jar:3.1.1000-SNAPSHOT] at 
> org.apache.hadoop.hive.ql.exec.TaskRunner.run(TaskRunner.java:82) 
> ~[hive-exec-3.1.0.3.1.5.1-2.jar:3.1.1000-SNAPSHOT]Caused by: 
> java.lang.NullPointerException at 
> org.apache.hadoop.hive.ql.exec.repl.bootstrap.load.LoadFunction.isFunctionAlreadyLoaded(LoadFunction.java:105)
>  ~[hive-exec-3.1.0.3.1.5.1-2.jar:3.1.1000-SNAPSHOT] at 
> org.apache.hadoop.hive.ql.exec.repl.bootstrap.load.LoadFunction.tasks(LoadFunction.java:81)
>  ~[hive-exec-3.1.0.3.1.5.1-2.jar:3.1.1000-SNAPSHOT] ... 5 more
> {code}



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

Reply via email to