From dev-return-49100-archive-asf-public=cust-asf.ponee.io@phoenix.apache.org Sat Feb 3 02:27:04 2018 Return-Path: X-Original-To: archive-asf-public@eu.ponee.io Delivered-To: archive-asf-public@eu.ponee.io Received: from cust-asf.ponee.io (cust-asf.ponee.io [163.172.22.183]) by mx-eu-01.ponee.io (Postfix) with ESMTP id A92FF18066D for ; Sat, 3 Feb 2018 02:27:04 +0100 (CET) Received: by cust-asf.ponee.io (Postfix) id 952CE160C57; Sat, 3 Feb 2018 01:27:04 +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 DF675160C49 for ; Sat, 3 Feb 2018 02:27:03 +0100 (CET) Received: (qmail 5442 invoked by uid 500); 3 Feb 2018 01:27:03 -0000 Mailing-List: contact dev-help@phoenix.apache.org; run by ezmlm Precedence: bulk List-Help: List-Unsubscribe: List-Post: List-Id: Reply-To: dev@phoenix.apache.org Delivered-To: mailing list dev@phoenix.apache.org Received: (qmail 5284 invoked by uid 99); 3 Feb 2018 01:27:02 -0000 Received: from pnap-us-west-generic-nat.apache.org (HELO spamd2-us-west.apache.org) (209.188.14.142) by apache.org (qpsmtpd/0.29) with ESMTP; Sat, 03 Feb 2018 01:27:02 +0000 Received: from localhost (localhost [127.0.0.1]) by spamd2-us-west.apache.org (ASF Mail Server at spamd2-us-west.apache.org) with ESMTP id 681B51A0493 for ; Sat, 3 Feb 2018 01:27:02 +0000 (UTC) X-Virus-Scanned: Debian amavisd-new at spamd2-us-west.apache.org X-Spam-Flag: NO X-Spam-Score: -102.311 X-Spam-Level: X-Spam-Status: No, score=-102.311 tagged_above=-999 required=6.31 tests=[RCVD_IN_DNSWL_MED=-2.3, SPF_PASS=-0.001, T_RP_MATCHES_RCVD=-0.01, USER_IN_WHITELIST=-100] autolearn=disabled Received: from mx1-lw-us.apache.org ([10.40.0.8]) by localhost (spamd2-us-west.apache.org [10.40.0.9]) (amavisd-new, port 10024) with ESMTP id MfAnFebiq6ox for ; Sat, 3 Feb 2018 01:27:01 +0000 (UTC) Received: from mailrelay1-us-west.apache.org (mailrelay1-us-west.apache.org [209.188.14.139]) by mx1-lw-us.apache.org (ASF Mail Server at mx1-lw-us.apache.org) with ESMTP id EE6265F3CC for ; Sat, 3 Feb 2018 01:27:00 +0000 (UTC) Received: from jira-lw-us.apache.org (unknown [207.244.88.139]) by mailrelay1-us-west.apache.org (ASF Mail Server at mailrelay1-us-west.apache.org) with ESMTP id 7E045E026E for ; Sat, 3 Feb 2018 01:27:00 +0000 (UTC) Received: from jira-lw-us.apache.org (localhost [127.0.0.1]) by jira-lw-us.apache.org (ASF Mail Server at jira-lw-us.apache.org) with ESMTP id 2C39021301 for ; Sat, 3 Feb 2018 01:27:00 +0000 (UTC) Date: Sat, 3 Feb 2018 01:27:00 +0000 (UTC) From: "Rama Mullapudi (JIRA)" To: dev@phoenix.apache.org Message-ID: In-Reply-To: References: Subject: [jira] [Updated] (PHOENIX-4581) phoenix-spark is not pushing timestamp filter correctly MIME-Version: 1.0 Content-Type: text/plain; charset=utf-8 Content-Transfer-Encoding: quoted-printable X-JIRA-FingerPrint: 30527f35849b9dde25b450d4833f0394 [ https://issues.apache.org/jira/browse/PHOENIX-4581?page=3Dcom.atlass= ian.jira.plugin.system.issuetabpanels:all-tabpanel ] Rama Mullapudi updated PHOENIX-4581: ------------------------------------ Description:=20 phoenix-spark is not pushing timestamp filter correctly =C2=A0 val tblDF =3D spark.sqlContext.read.format("org.apache.phoenix.spark") .option("table", "tablename").option("zkUrl" , "host:2181:/hbase-secure").l= oad() .filter(col("CREATE_TMS").gt(lit(current_timestamp()))).show() =C2=A0 Query being sent to phoenix select .... FROM ORDER_LINE WHERE ( "CREATE_TMS" > 2018-02-02 20:06:51.545) =C2=A0 As timstamp string does not have quotes query fails to run. =C2=A0 =C2=A0 =C2=A0 was: phoenix-spark is not pushing timestamp filter correctly =C2=A0 val tblDF =3D spark.sqlContext.read.format("org.apache.phoenix.spark") .option("table", "ORDER_LINE").option("zkUrl" , "host:2181:/hbase-secure").= load() .filter(col("CREATE_TMS").gt(lit(current_timestamp()))).show() =C2=A0 Query being sent to phoenix select .... FROM ORDER_LINE WHERE ( "CREATE_TMS" > 2018-02-02 20:06:51.545) =C2=A0 As timstamp string does not have quotes query fails to run. =C2=A0 =C2=A0 =C2=A0 > phoenix-spark is not pushing timestamp filter correctly > ------------------------------------------------------- > > Key: PHOENIX-4581 > URL: https://issues.apache.org/jira/browse/PHOENIX-4581 > Project: Phoenix > Issue Type: Bug > Reporter: Rama Mullapudi > Priority: Major > > phoenix-spark is not pushing timestamp filter correctly > =C2=A0 > val tblDF =3D spark.sqlContext.read.format("org.apache.phoenix.spark") > .option("table", "tablename").option("zkUrl" , "host:2181:/hbase-secure")= .load() > .filter(col("CREATE_TMS").gt(lit(current_timestamp()))).show() > =C2=A0 > Query being sent to phoenix > select .... FROM ORDER_LINE WHERE ( "CREATE_TMS" > 2018-02-02 20:06:51.54= 5) > =C2=A0 > As timstamp string does not have quotes query fails to run. > =C2=A0 > =C2=A0 > =C2=A0 -- This message was sent by Atlassian JIRA (v7.6.3#76005)