From dev-return-55089-archive-asf-public=cust-asf.ponee.io@phoenix.apache.org Wed Jan 16 02:26:05 2019 Return-Path: X-Original-To: archive-asf-public@cust-asf.ponee.io Delivered-To: archive-asf-public@cust-asf.ponee.io Received: from mail.apache.org (hermes.apache.org [140.211.11.3]) by mx-eu-01.ponee.io (Postfix) with SMTP id 0B077180675 for ; Wed, 16 Jan 2019 02:26:04 +0100 (CET) Received: (qmail 51265 invoked by uid 500); 16 Jan 2019 01:26:04 -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 51133 invoked by uid 99); 16 Jan 2019 01:26:03 -0000 Received: from pnap-us-west-generic-nat.apache.org (HELO spamd3-us-west.apache.org) (209.188.14.142) by apache.org (qpsmtpd/0.29) with ESMTP; Wed, 16 Jan 2019 01:26:03 +0000 Received: from localhost (localhost [127.0.0.1]) by spamd3-us-west.apache.org (ASF Mail Server at spamd3-us-west.apache.org) with ESMTP id 74F83180D7E for ; Wed, 16 Jan 2019 01:26:03 +0000 (UTC) X-Virus-Scanned: Debian amavisd-new at spamd3-us-west.apache.org X-Spam-Flag: NO X-Spam-Score: -110.301 X-Spam-Level: X-Spam-Status: No, score=-110.301 tagged_above=-999 required=6.31 tests=[ENV_AND_HDR_SPF_MATCH=-0.5, RCVD_IN_DNSWL_MED=-2.3, SPF_PASS=-0.001, USER_IN_DEF_SPF_WL=-7.5, USER_IN_WHITELIST=-100] autolearn=disabled Received: from mx1-lw-eu.apache.org ([10.40.0.8]) by localhost (spamd3-us-west.apache.org [10.40.0.10]) (amavisd-new, port 10024) with ESMTP id Lw3Ej-LZK5hj for ; Wed, 16 Jan 2019 01:26:02 +0000 (UTC) Received: from mailrelay1-us-west.apache.org (mailrelay1-us-west.apache.org [209.188.14.139]) by mx1-lw-eu.apache.org (ASF Mail Server at mx1-lw-eu.apache.org) with ESMTP id 992555F501 for ; Wed, 16 Jan 2019 01:26:01 +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 C19E6E266D for ; Wed, 16 Jan 2019 01:26: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 3F63425633 for ; Wed, 16 Jan 2019 01:26:00 +0000 (UTC) Date: Wed, 16 Jan 2019 01:26:00 +0000 (UTC) From: "Thomas D'Silva (JIRA)" To: dev@phoenix.apache.org Message-ID: In-Reply-To: References: Subject: [jira] [Updated] (PHOENIX-2268) Pentaho BA query fails 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/PHOENIX-2268?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel ] Thomas D'Silva updated PHOENIX-2268: ------------------------------------ Fix Version/s: (was: 4.15.0) > Pentaho BA query fails > ---------------------- > > Key: PHOENIX-2268 > URL: https://issues.apache.org/jira/browse/PHOENIX-2268 > Project: Phoenix > Issue Type: Improvement > Reporter: alex kamil > Priority: Minor > Labels: verify > > this query was generated by Pentaho analyzer ("generic database" datasource), looks like phoenix syntax needs to be enhanced to work with pentaho > select "FACT"."MAIL_FROM" as "c0" from (select * from EMAIL_ENRON) as "FACT" group by "FACT"."MAIL_FROM" order by CASE WHEN "FACT"."MAIL_FROM" IS NULL THEN 1 ELSE 0 END, "FACT"."MAIL_FROM" ASC; > Error: ERROR 1001 (42I01): Undefined column family. familyName=FACT.null (state=42I01,code=1001) > org.apache.phoenix.schema.ColumnFamilyNotFoundException: ERROR 1001 (42I01): Undefined column family. familyName=FACT.null > at org.apache.phoenix.schema.PTableImpl.getColumnFamily(PTableImpl.java:787) > at org.apache.phoenix.compile.FromCompiler$SingleTableColumnResolver.resolveColumn(FromCompiler.java:361) > at org.apache.phoenix.compile.ExpressionCompiler.resolveColumn(ExpressionCompiler.java:369) > at org.apache.phoenix.compile.ExpressionCompiler.visit(ExpressionCompiler.java:401) > at org.apache.phoenix.compile.ExpressionCompiler.visit(ExpressionCompiler.java:141) > at org.apache.phoenix.parse.ColumnParseNode.accept(ColumnParseNode.java:56) > at org.apache.phoenix.compile.GroupByCompiler.compile(GroupByCompiler.java:167) > at org.apache.phoenix.compile.QueryCompiler.compileSingleFlatQuery(QueryCompiler.java:525) > at org.apache.phoenix.compile.QueryCompiler.compileSingleQuery(QueryCompiler.java:489) > at org.apache.phoenix.compile.QueryCompiler.compileSelect(QueryCompiler.java:201) > at org.apache.phoenix.compile.QueryCompiler.compile(QueryCompiler.java:158) > at org.apache.phoenix.jdbc.PhoenixStatement$ExecutableSelectStatement.compilePlan(PhoenixStatement.java:380) > at org.apache.phoenix.jdbc.PhoenixStatement$ExecutableSelectStatement.compilePlan(PhoenixStatement.java:354) > at org.apache.phoenix.jdbc.PhoenixStatement$1.call(PhoenixStatement.java:260) > at org.apache.phoenix.jdbc.PhoenixStatement$1.call(PhoenixStatement.java:255) > at org.apache.phoenix.call.CallRunner.run(CallRunner.java:53) > at org.apache.phoenix.jdbc.PhoenixStatement.executeQuery(PhoenixStatement.java:254) > at org.apache.phoenix.jdbc.PhoenixStatement.execute(PhoenixStatement.java:1435) > Related: > * PHOENIX-643 > * http://jira.pentaho.com/browse/MONDRIAN-2254 > * https://blogs.apache.org/phoenix/entry/olap_with_apache_phoenix_and -- This message was sent by Atlassian JIRA (v7.6.3#76005)