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

Gopal V commented on HIVE-12092:
--------------------------------

Yes, I should be checking for GenericUDFOPEqualOrGreaterThan.

The explain doesn't work, since the SARGs aren't printed in the explain at all 
- I'll write unit tests for minPrefix and ConvertAstToSearchArg.

> SARGS: UDFLike prefix cases needs to be translated into >= sargs
> ----------------------------------------------------------------
>
>                 Key: HIVE-12092
>                 URL: https://issues.apache.org/jira/browse/HIVE-12092
>             Project: Hive
>          Issue Type: Improvement
>          Components: Logical Optimizer
>    Affects Versions: 1.3.0, 2.0.0
>            Reporter: Gopal V
>            Assignee: Gopal V
>         Attachments: HIVE-12092.1.patch, HIVE-12092.2.patch, 
> HIVE-12092.3.patch
>
>
> A query which follows the following format
> {{select * from table where access_url like "https:%" ;}}
> needs to rewrite SARGs as 
> {{access_url >= 'https:'}}
> to get a significant hit-rate on a simple expression.



--
This message was sent by Atlassian JIRA
(v6.3.4#6332)

Reply via email to