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

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

                Author: ASF GitHub Bot
            Created on: 24/Jul/22 03:57
            Start Date: 24/Jul/22 03:57
    Worklog Time Spent: 10m 
      Work Description: nrg4878 commented on PR #3474:
URL: https://github.com/apache/hive/pull/3474#issuecomment-1193241476

   @zabetak I am not familiar with the CBO code as much. Could you please 
review this simple change? Thank you




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

    Worklog Id:     (was: 794592)
    Time Spent: 20m  (was: 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
>              Labels: pull-request-available
>          Time Spent: 20m
>  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