Return-Path: X-Original-To: archive-asf-public-internal@cust-asf2.ponee.io Delivered-To: archive-asf-public-internal@cust-asf2.ponee.io Received: from cust-asf.ponee.io (cust-asf.ponee.io [163.172.22.183]) by cust-asf2.ponee.io (Postfix) with ESMTP id 23CDE200AF8 for ; Thu, 5 May 2016 12:54:28 +0200 (CEST) Received: by cust-asf.ponee.io (Postfix) id 22658160A03; Thu, 5 May 2016 10:54:28 +0000 (UTC) Delivered-To: archive-asf-public@cust-asf.ponee.io Received: from mail.apache.org (hermes.apache.org [140.211.11.3]) by cust-asf.ponee.io (Postfix) with SMTP id 6B634160A02 for ; Thu, 5 May 2016 12:54:27 +0200 (CEST) Received: (qmail 92188 invoked by uid 500); 5 May 2016 10:54:21 -0000 Mailing-List: contact user-help@hive.apache.org; run by ezmlm Precedence: bulk List-Help: List-Unsubscribe: List-Post: List-Id: Reply-To: user@hive.apache.org Delivered-To: mailing list user@hive.apache.org Received: (qmail 92169 invoked by uid 99); 5 May 2016 10:54:21 -0000 Received: from pnap-us-west-generic-nat.apache.org (HELO spamd1-us-west.apache.org) (209.188.14.142) by apache.org (qpsmtpd/0.29) with ESMTP; Thu, 05 May 2016 10:54:21 +0000 Received: from localhost (localhost [127.0.0.1]) by spamd1-us-west.apache.org (ASF Mail Server at spamd1-us-west.apache.org) with ESMTP id 667AFC27DE; Thu, 5 May 2016 10:54:20 +0000 (UTC) X-Virus-Scanned: Debian amavisd-new at spamd1-us-west.apache.org X-Spam-Flag: NO X-Spam-Score: 1.448 X-Spam-Level: * X-Spam-Status: No, score=1.448 tagged_above=-999 required=6.31 tests=[DKIM_SIGNED=0.1, DKIM_VALID=-0.1, DKIM_VALID_AU=-0.1, FREEMAIL_ENVFROM_END_DIGIT=0.25, HTML_MESSAGE=2, RCVD_IN_DNSWL_LOW=-0.7, RCVD_IN_MSPIKE_H2=-0.001, SPF_PASS=-0.001] autolearn=disabled Authentication-Results: spamd1-us-west.apache.org (amavisd-new); dkim=pass (2048-bit key) header.d=gmail.com Received: from mx1-lw-us.apache.org ([10.40.0.8]) by localhost (spamd1-us-west.apache.org [10.40.0.7]) (amavisd-new, port 10024) with ESMTP id JD0Lx0O42WaR; Thu, 5 May 2016 10:54:19 +0000 (UTC) Received: from mail-qg0-f41.google.com (mail-qg0-f41.google.com [209.85.192.41]) by mx1-lw-us.apache.org (ASF Mail Server at mx1-lw-us.apache.org) with ESMTPS id B364F5F295; Thu, 5 May 2016 10:54:19 +0000 (UTC) Received: by mail-qg0-f41.google.com with SMTP id w36so37397532qge.3; Thu, 05 May 2016 03:54:19 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20120113; h=mime-version:from:date:message-id:subject:to; bh=yuDWoyBaO/k5gJMoIDI2AxvWX5rWxyhNIhLX1TFphVo=; b=ffWFsJ8RHBfoOptU3nn7mDC/yaYI5Y6xZWqRXr2uyOOho25youVxZjmGQnEyLiHuZ7 Ik8rqMY+EXgNwqHapUxYJVJwridXQ2XlZa+xpF6zYd4Np24ocAaHwdlAkCO0HQIP8h+H ez/f66FNIJXYbhNri8SD5/cDj5szX8GyT9GD+fGjadIeWgrp98JyHTQQwjwaiCVlA/q7 wRuaHdhPRGXMDXj1pla6+lR/rGfzrs/EohUa+XIg9f9VYJXiGfntMjGXAtKUo27WOBSG R/KKMdBdDRZvHs2PhAjyEmSWo8ephA4Q/8H/OigPiwbFavUyof1BteSAtQGDcr+6ygxj 9K/g== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20130820; h=x-gm-message-state:mime-version:from:date:message-id:subject:to; bh=yuDWoyBaO/k5gJMoIDI2AxvWX5rWxyhNIhLX1TFphVo=; b=iGFzDF+uMfkU+M14nschipRDejxT+YpXRcWDpCyaEufs0woxbwZNIJZSYpH875lI32 8Qjt71hT655otxirP6NbUT8CdwN1P8bcioi51+sm8BeFkyvvrUOwNXH0gEyGpUENlnnM fxXsT00UbyiccE+PV5ITVQd367xtle+IvI0QD5ppUa1ah3smwB6fhryoL5oRo6I33uAy ADy4kgBhN0dBq7wknVMm2aCyOGTfIEViu0vNY2EPOqcHCpJLxSgKIZjfGKKW1NBiW2rE yI7jbwlSmSTQHpBHdaNro3HiDxrxQ0rDe+8gfQcycEEoISr8S9pwGBKesB+lTZUIiqH8 n+7w== X-Gm-Message-State: AOPr4FWKSfXu+Tbh9u7Al9YzQWvKw6PFSGObIfnPwm+A7OZEF+ow60WuIa5M+2GzJk8Gcx9Zo38g+4UVQdvNJA== X-Received: by 10.140.85.133 with SMTP id n5mr13382735qgd.32.1462445658936; Thu, 05 May 2016 03:54:18 -0700 (PDT) MIME-Version: 1.0 Received: by 10.55.36.66 with HTTP; Thu, 5 May 2016 03:53:39 -0700 (PDT) From: Amey Barve Date: Thu, 5 May 2016 16:23:39 +0530 Message-ID: Subject: Predicates for 'like' and 'between' operators to custom storage handler. To: user@hive.apache.org, dev@hive.apache.org Content-Type: multipart/alternative; boundary=001a11c133c80118ff0532162a8a archived-at: Thu, 05 May 2016 10:54:28 -0000 --001a11c133c80118ff0532162a8a Content-Type: text/plain; charset=UTF-8 Hi All, I have implemented custom storage-handler and able to get predicates from hive for '=', '!=', '<', '<=', '>' and '>=' operators. But I cannot get predicates from hive for 'like', 'between' operators. Here's my code: *final String expression = conf.get(TableScanDesc.FILTER_EXPR_CONF_STR);* here expression remains null for like and between operators but not null for above operators. Does hive not give predicates for 'like' and 'between' operators to custom storage handler ? *Is there some other mechanism to get predicates for 'like' operator*? I tested with hive version 1.2 and 0.14. Thanks and Regards, Amey --001a11c133c80118ff0532162a8a Content-Type: text/html; charset=UTF-8 Content-Transfer-Encoding: quoted-printable
Hi All,

I have implemented custom = storage-handler and able to get predicates from hive for '=3D', = 9;!=3D', '<', '<=3D', '>' and '>= ;=3D' operators.
But I cannot get predicates from hive for &#= 39;like', 'between' operators.

Here= 9;s my code:

final String expression =3D conf.g= et(TableScanDesc.FILTER_EXPR_CONF_STR);

here e= xpression remains null for like and between operators but not null for abov= e operators.

Does hive not give predicates for = 9;like' and 'between' operators to custom storage handler ?
Is there some other mechanism to get predicates for 'like'= ; operator?

I tested with hive version 1.2 and= 0.14.

Thanks and Regards,
Amey
--001a11c133c80118ff0532162a8a--