Return-Path: X-Original-To: apmail-hive-dev-archive@www.apache.org Delivered-To: apmail-hive-dev-archive@www.apache.org Received: from mail.apache.org (hermes.apache.org [140.211.11.3]) by minotaur.apache.org (Postfix) with SMTP id 497C19ECC for ; Wed, 29 May 2013 06:02:22 +0000 (UTC) Received: (qmail 95783 invoked by uid 500); 29 May 2013 06:02:21 -0000 Delivered-To: apmail-hive-dev-archive@hive.apache.org Received: (qmail 95718 invoked by uid 500); 29 May 2013 06:02:21 -0000 Mailing-List: contact dev-help@hive.apache.org; run by ezmlm Precedence: bulk List-Help: List-Unsubscribe: List-Post: List-Id: Reply-To: dev@hive.apache.org Delivered-To: mailing list dev@hive.apache.org Received: (qmail 95703 invoked by uid 500); 29 May 2013 06:02:20 -0000 Delivered-To: apmail-hadoop-hive-dev@hadoop.apache.org Received: (qmail 95683 invoked by uid 99); 29 May 2013 06:02:20 -0000 Received: from arcas.apache.org (HELO arcas.apache.org) (140.211.11.28) by apache.org (qpsmtpd/0.29) with ESMTP; Wed, 29 May 2013 06:02:20 +0000 Date: Wed, 29 May 2013 06:02:20 +0000 (UTC) From: "Owen O'Malley (JIRA)" To: hive-dev@hadoop.apache.org Message-ID: In-Reply-To: References: Subject: [jira] [Commented] (HIVE-4579) Create a SARG interface for RecordReaders MIME-Version: 1.0 Content-Type: text/plain; charset=utf-8 Content-Transfer-Encoding: 7bit X-JIRA-FingerPrint: 30527f35849b9dde25b450d4833f0394 [ https://issues.apache.org/jira/browse/HIVE-4579?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=13669027#comment-13669027 ] Owen O'Malley commented on HIVE-4579: ------------------------------------- I need to add the null-safe equals as an primitive clause. Having NULL as a boolean value makes things strange and I need to keep in mind that: * P and not P is not always false (it may be null) * P or not P is not always true (it may be null) I see why you wanted HIVE-4478 since if a column has no nulls, the rules for predicate evaluation are much tighter. :) Although we are going to want it in the index as well as in the stripe metadata. > Create a SARG interface for RecordReaders > ----------------------------------------- > > Key: HIVE-4579 > URL: https://issues.apache.org/jira/browse/HIVE-4579 > Project: Hive > Issue Type: Improvement > Reporter: Owen O'Malley > Assignee: Owen O'Malley > Attachments: h-4579.patch, pushdown.pdf > > > I think we should create a SARG (http://en.wikipedia.org/wiki/Sargable) interface for RecordReaders. For a first pass, I'll create an API that uses the value stored in hive.io.filter.expr.serialized. > The desire is to define an simpler interface that the direct AST expression that is provided by hive.io.filter.expr.serialized so that the code to evaluate expressions can be generalized instead of put inside a particular RecordReader. -- This message is automatically generated by JIRA. If you think it was sent incorrectly, please contact your JIRA administrators For more information on JIRA, see: http://www.atlassian.com/software/jira