[
https://issues.apache.org/jira/browse/KYLIN-1419?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=15149777#comment-15149777
]
liyang commented on KYLIN-1419:
-------------------------------
Thanks Nichunen! I revised a little and merged the patch to 1.x-staging,
2.0-rc, and 2.x-staging.
One minor comment on the coding style. Please note the spacing and indent
should be consistent with the existing code.
> NullPointerException occurs when query from subqueries with order by
> --------------------------------------------------------------------
>
> Key: KYLIN-1419
> URL: https://issues.apache.org/jira/browse/KYLIN-1419
> Project: Kylin
> Issue Type: Bug
> Components: Query Engine
> Affects Versions: v1.2
> Reporter: nichunen
> Assignee: nichunen
> Fix For: v1.3
>
> Attachments: KYLIN-1419-V2.patch, KYLIN-1419.patch
>
>
> Context may not have table scan which is created by OLAPJoinRel, so it does
> not have realization. In
> org.apache.kylin.query.relnode.OLAPSortRel#findMeasure, it visits
> "this.context.realization" directly, so makes the NullPointerException. For
> example, query like "select a.LSTG_FORMAT_NAME from (select
> LEAF_CATEG_ID,LSTG_FORMAT_NAME from KYLIN_SALES)a, (select
> LEAF_CATEG_ID,PART_DT from KYLIN_SALES)b order by a.LSTG_FORMAT_NAME".
> Attached is the patch to fix, added a null protection.
--
This message was sent by Atlassian JIRA
(v6.3.4#6332)