You are viewing a plain text version of this content. The canonical link for it is here.
Posted to dev@phoenix.apache.org by "alex kamil (JIRA)" <ji...@apache.org> on 2015/09/17 18:33:06 UTC
[jira] [Created] (PHOENIX-2268) Pentaho BA query fails
alex kamil created PHOENIX-2268:
-----------------------------------
Summary: 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
this query was generated by Pentaho analyzer, 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)
--
This message was sent by Atlassian JIRA
(v6.3.4#6332)