[
https://issues.apache.org/jira/browse/HIVE-12092?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=14993300#comment-14993300
]
Gopal V commented on HIVE-12092:
--------------------------------
[~sershe]: fixed that.
bq. Or, I wonder if it could just be done when creating SARG from UDF, so that
SARG-specific code stays SARG-specific without Hive making assumptions about
what SARG can and cannot do?
That's exactly where the code is plugged in right now - the AST convertor. I
haven't got any code in the SARGs codebase as such - this is written this way
so that it doesn't add a ql/ dep into ORC.
> 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
>
>
> 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)