[ 
https://issues.apache.org/jira/browse/HIVE-26426?focusedWorklogId=794438&page=com.atlassian.jira.plugin.system.issuetabpanels:worklog-tabpanel#worklog-794438
 ]

ASF GitHub Bot logged work on HIVE-26426:
-----------------------------------------

                Author: ASF GitHub Bot
            Created on: 23/Jul/22 02:18
            Start Date: 23/Jul/22 02:18
    Worklog Time Spent: 10m 
      Work Description: achennagiri opened a new pull request, #3474:
URL: https://github.com/apache/hive/pull/3474

   
   
   
   ### What changes were proposed in this pull request?
   
   
   
   ### Why are the changes needed?
   
   
   
   ### Does this PR introduce _any_ user-facing change?
   No.
   
   ### How was this patch tested?
   
   




Issue Time Tracking
-------------------

            Worklog Id:     (was: 794438)
    Remaining Estimate: 0h
            Time Spent: 10m

> Avoid StringIndexOutOfBoundsException in canCBOHandleAst() method.
> ------------------------------------------------------------------
>
>                 Key: HIVE-26426
>                 URL: https://issues.apache.org/jira/browse/HIVE-26426
>             Project: Hive
>          Issue Type: Bug
>          Components: HiveServer2
>            Reporter: Abhay
>            Assignee: Abhay
>            Priority: Minor
>          Time Spent: 10m
>  Remaining Estimate: 0h
>
> The call to canHandleQbForCbo() can result in an 
> StringIndexOutOfBoundsException. The assumption in the code is that the msg 
> can only be null and we handle that but the msg can also be an empty string 
> if the *verbose* is set to false. This can happen if INFO Logging is not 
> enabled. We need to handle that case.
> https://github.com/apache/hive/blob/master/ql/src/java/org/apache/hadoop/hive/ql/parse/CalcitePlanner.java#L913



--
This message was sent by Atlassian Jira
(v8.20.10#820010)

Reply via email to