[ https://issues.apache.org/jira/browse/KYLIN-2078?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel ]
Shaofeng SHI resolved KYLIN-2078. --------------------------------- Resolution: Fixed > Can't see generated SQL at Web UI > --------------------------------- > > Key: KYLIN-2078 > URL: https://issues.apache.org/jira/browse/KYLIN-2078 > Project: Kylin > Issue Type: Bug > Affects Versions: v1.5.4, v1.5.4.1 > Reporter: Dayue Gao > Assignee: Shaofeng SHI > Fix For: v1.6.0 > > > After KYLIN-1966, user can't see generated SQL at cube page. > {noformat} > 2016-10-10 15:45:17,975 ERROR [http-bio-8080-exec-13] > controller.BasicController:44 : > java.lang.NullPointerException > at > org.apache.kylin.engine.EngineFactory.batchEngine(EngineFactory.java:44) > at > org.apache.kylin.engine.EngineFactory.getJoinedFlatTableDesc(EngineFactory.java:58) > at > org.apache.kylin.rest.controller.CubeController.getSql(CubeController.java:155) > {noformat} > Seems segmentName passed into CubeController#getSql is always null, should > use `EngineFactory.getJoinedFlatTableDesc(cube.getDescriptor())` instead. -- This message was sent by Atlassian JIRA (v6.3.4#6332)