You are viewing a plain text version of this content. The canonical link for it is here.
Posted to issues@hive.apache.org by "Gunther Hagleitner (JIRA)" <ji...@apache.org> on 2015/12/09 20:34:10 UTC
[jira] [Commented] (HIVE-12092) SARGS: UDFLike prefix cases needs
to be translated into >= sargs
[ https://issues.apache.org/jira/browse/HIVE-12092?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=15049247#comment-15049247 ]
Gunther Hagleitner commented on HIVE-12092:
-------------------------------------------
In your example above you say: x like "https:%" -> x >= "https:". Doesn't it also guarantee that: x < "https;" and if so wouldn't that narrow the space further?
> 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)