Hi Tao, did you try to restart Kylin, or click "Disable cache" in "Admin"
tab? Just wondering whether it is a cached error.

2016-05-06 14:04 GMT+08:00 Tao Li(Internship) <[email protected]>:

> I didn't change anything on the sample.
>
> -----邮件原件-----
> 发件人: hongbin ma [mailto:[email protected]]
> 发送时间: 2016年5月6日 12:08
> 收件人: [email protected]
> 主题: Re: 答复: 答复: Can't create EnumerableAggregate
>
> Hi Tao
>
> Did you ever change the definition of the sample cube?
>
> On Fri, May 6, 2016 at 12:01 PM, Tao Li(Internship) <[email protected]
> >
> wrote:
>
> > My configuration environment as follows:
> > Hadoop: 2.5.2
> > Hive: 1.2.1
> > Hbase: 1.1.3
> > Kylin: 1.5.1
> >
> > -----邮件原件-----
> > 发件人: ShaoFeng Shi [mailto:[email protected]]
> > 发送时间: 2016年5月6日 11:13
> > 收件人: [email protected]
> > 主题: Re: 答复: Can't create EnumerableAggregate
> >
> > Interesting, count(distinct seller_id) should work as it is a
> > pre-defined measure in the sample cube. Tao, could you please provide
> > your Kylin version?
> >
> > 2016-05-06 9:32 GMT+08:00 Tao Li(Internship) <[email protected]>:
> >
> > > Yes, it worked successfully. Thanks.
> > >
> > > -----邮件原件-----
> > > 发件人: Julian Hyde [mailto:[email protected]]
> > > 发送时间: 2016年5月6日 0:42
> > > 收件人: [email protected]
> > > 主题: Re: Can't create EnumerableAggregate
> > >
> > > Try changing "count(distinct seller_id)” to "count(seller_id)”. Does
> > > it work now? I know that EnumerableAggregate cannot handle
> > > distinct-count and I suspect Kylin cannot either.
> > >
> > > > On May 5, 2016, at 3:00 AM, Tao Li(Internship)
> > > > <[email protected]>
> > > wrote:
> > > >
> > > > Hi,
> > > >
> > > >   I submitted sql in the learn_kylin project:
> > > >
> > > > select part_dt, sum(price) as total_selled, count(distinct
> > > > seller_id) as
> > > seller from kylin_sales group by part_dt order by part_dt
> > > >
> > > > And it failed with Error:
> > > >
> > > > Error while executing SQL "select part_dt, sum(price) as
> > > > total_selled,
> > > count(distinct seller_id) as seller from kylin_sales group by
> > > part_dt order by part_dt LIMIT 500": Can't create EnumerableAggregate!
> > > >
> > > > The content in kylin.log file:
> > > >
> > > > 2016-05-05 17:47:41,509 ERROR [http-bio-7070-exec-4]
> > > controller.BasicController:44 :
> > > > org.apache.kylin.rest.exception.InternalErrorException: Error
> > > > while
> > > executing SQL "select part_dt, sum(price) as total_selled,
> > > count(distinct
> > > seller_id) as seller from kylin_sales group by part_dt order by
> > > part_dt LIMIT 500": Can't create EnumerableAggregate!
> > > >        at
> > > org.apache.kylin.rest.controller.QueryController.doQueryWithCache(Qu
> > > er
> > > yController.java:224)
> > > >        at
> > > org.apache.kylin.rest.controller.QueryController.query(QueryControll
> > > er
> > > .java:94)
> > > >        at sun.reflect.GeneratedMethodAccessor92.invoke(Unknown
> Source)
> > > >        at
> > > sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAcce
> > > ss
> > > orImpl.java:43)
> > > >        at java.lang.reflect.Method.invoke(Method.java:606)
> > > >        at
> > > org.springframework.web.method.support.InvocableHandlerMethod.invoke
> > > (I
> > > nvocableHandlerMethod.java:213)
> > > >        at
> > > org.springframework.web.method.support.InvocableHandlerMethod.invoke
> > > Fo
> > > rRequest(InvocableHandlerMethod.java:126)
> > > >        at
> > > org.springframework.web.servlet.mvc.method.annotation.ServletInvocab
> > > le
> > > HandlerMethod.invokeAndHandle(ServletInvocableHandlerMethod.java:96)
> > > >        at
> > > org.springframework.web.servlet.mvc.method.annotation.RequestMapping
> > > Ha
> > > ndlerAdapter.invokeHandlerMethod(RequestMappingHandlerAdapter.java:6
> > > 17
> > > )
> > > >        at
> > > org.springframework.web.servlet.mvc.method.annotation.RequestMapping
> > > Ha
> > > ndlerAdapter.handleInternal(RequestMappingHandlerAdapter.java:578)
> > > >        at
> > > org.springframework.web.servlet.mvc.method.AbstractHandlerMethodAdap
> > > te
> > > r.handle(AbstractHandlerMethodAdapter.java:80)
> > > >        at
> > > org.springframework.web.servlet.DispatcherServlet.doDispatch(Dispatc
> > > he
> > > rServlet.java:923)
> > > >        at
> > > org.springframework.web.servlet.DispatcherServlet.doService(Dispatch
> > > er
> > > Servlet.java:852)
> > > >        at
> > > org.springframework.web.servlet.FrameworkServlet.processRequest(Fram
> > > ew
> > > orkServlet.java:882)
> > > >        at
> > > org.springframework.web.servlet.FrameworkServlet.doPost(FrameworkSer
> > > vl
> > > et.java:789)
> > > >        at
> javax.servlet.http.HttpServlet.service(HttpServlet.java:646)
> > > >        at
> javax.servlet.http.HttpServlet.service(HttpServlet.java:727)
> > > >        at
> > > org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(App
> > > li
> > > cationFilterChain.java:303)
> > > >        at
> > > org.apache.catalina.core.ApplicationFilterChain.doFilter(Application
> > > Fi
> > > lterChain.java:208)
> > > >        at
> > > org.apache.tomcat.websocket.server.WsFilter.doFilter(WsFilter.java:5
> > > 2)
> > > >        at
> > > org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(App
> > > li
> > > cationFilterChain.java:241)
> > > >        at
> > > org.apache.catalina.core.ApplicationFilterChain.doFilter(Application
> > > Fi
> > > lterChain.java:208)
> > > >        at
> > > org.springframework.security.web.FilterChainProxy$VirtualFilterChain
> > > .d
> > > oFilter(FilterChainProxy.java:330)
> > > >        at
> > > org.springframework.security.web.access.intercept.FilterSecurityInte
> > > rc
> > > eptor.invoke(FilterSecurityInterceptor.java:118)
> > > >        at
> > > org.springframework.security.web.access.intercept.FilterSecurityInte
> > > rc
> > > eptor.doFilter(FilterSecurityInterceptor.java:84)
> > > >        at
> > > org.springframework.security.web.FilterChainProxy$VirtualFilterChain
> > > .d
> > > oFilter(FilterChainProxy.java:342)
> > > >        at
> > > org.springframework.security.web.access.ExceptionTranslationFilter.d
> > > oF
> > > ilter(ExceptionTranslationFilter.java:113)
> > > >        at
> > > org.springframework.security.web.FilterChainProxy$VirtualFilterChain
> > > .d
> > > oFilter(FilterChainProxy.java:342)
> > > >        at
> > > org.springframework.security.web.session.SessionManagementFilter.doF
> > > il
> > > ter(SessionManagementFilter.java:103)
> > > >        at
> > > org.springframework.security.web.FilterChainProxy$VirtualFilterChain
> > > .d
> > > oFilter(FilterChainProxy.java:342)
> > > >        at
> > > org.springframework.security.web.authentication.AnonymousAuthenticat
> > > io
> > > nFilter.doFilter(AnonymousAuthenticationFilter.java:113)
> > > >        at
> > > org.springframework.security.web.FilterChainProxy$VirtualFilterChain
> > > .d
> > > oFilter(FilterChainProxy.java:342)
> > > >        at
> > > org.springframework.security.web.servletapi.SecurityContextHolderAwa
> > > re
> > > RequestFilter.doFilter(SecurityContextHolderAwareRequestFilter.java:
> > > 54
> > > )
> > > >        at
> > > org.springframework.security.web.FilterChainProxy$VirtualFilterChain
> > > .d
> > > oFilter(FilterChainProxy.java:342)
> > > >        at
> > > org.springframework.security.web.authentication.www.BasicAuthenticat
> > > io
> > > nFilter.doFilter(BasicAuthenticationFilter.java:201)
> > > >        at
> > > org.springframework.security.web.FilterChainProxy$VirtualFilterChain
> > > .d
> > > oFilter(FilterChainProxy.java:342)
> > > >        at
> > > org.springframework.security.web.authentication.ui.DefaultLoginPageG
> > > en
> > > eratingFilter.doFilter(DefaultLoginPageGeneratingFilter.java:91)
> > > >        at
> > > org.springframework.security.web.FilterChainProxy$VirtualFilterChain
> > > .d
> > > oFilter(FilterChainProxy.java:342)
> > > >        at
> > > org.springframework.security.web.authentication.AbstractAuthenticati
> > > on
> > > ProcessingFilter.doFilter(AbstractAuthenticationProcessingFilter.java:
> > > 183)
> > > >        at
> > > org.springframework.security.web.FilterChainProxy$VirtualFilterChain
> > > .d
> > > oFilter(FilterChainProxy.java:342)
> > > >        at
> > > org.springframework.security.web.authentication.logout.LogoutFilter.
> > > do
> > > Filter(LogoutFilter.java:105)
> > > >        at
> > > org.springframework.security.web.FilterChainProxy$VirtualFilterChain
> > > .d
> > > oFilter(FilterChainProxy.java:342)
> > > >        at
> > > org.springframework.security.web.context.SecurityContextPersistenceF
> > > il
> > > ter.doFilter(SecurityContextPersistenceFilter.java:87)
> > > >        at
> > > org.springframework.security.web.FilterChainProxy$VirtualFilterChain
> > > .d
> > > oFilter(FilterChainProxy.java:342)
> > > >        at
> > > org.springframework.security.web.FilterChainProxy.doFilterInternal(F
> > > il
> > > terChainProxy.java:192)
> > > >        at
> > > org.springframework.security.web.FilterChainProxy.doFilter(FilterCha
> > > in
> > > Proxy.java:160)
> > > >        at
> > > org.springframework.web.filter.DelegatingFilterProxy.invokeDelegate(
> > > De
> > > legatingFilterProxy.java:346)
> > > >        at
> > > org.springframework.web.filter.DelegatingFilterProxy.doFilter(Delega
> > > ti
> > > ngFilterProxy.java:259)
> > > >        at
> > > org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(App
> > > li
> > > cationFilterChain.java:241)
> > > >        at
> > > org.apache.catalina.core.ApplicationFilterChain.doFilter(Application
> > > Fi
> > > lterChain.java:208)
> > > >        at
> > > com.thetransactioncompany.cors.CORSFilter.doFilter(CORSFilter.java:1
> > > 95
> > > )
> > > >        at
> > > com.thetransactioncompany.cors.CORSFilter.doFilter(CORSFilter.java:2
> > > 66
> > > )
> > > >        at
> > > org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(App
> > > li
> > > cationFilterChain.java:241)
> > > >        at
> > > org.apache.catalina.core.ApplicationFilterChain.doFilter(Application
> > > Fi
> > > lterChain.java:208)
> > > >        at
> > > org.apache.catalina.core.StandardWrapperValve.invoke(StandardWrapper
> > > Va
> > > lve.java:220)
> > > >        at
> > > org.apache.catalina.core.StandardContextValve.invoke(StandardContext
> > > Va
> > > lve.java:122)
> > > >        at
> > > org.apache.catalina.authenticator.AuthenticatorBase.invoke(Authentic
> > > at
> > > orBase.java:504)
> > > >        at
> > > org.apache.catalina.core.StandardHostValve.invoke(StandardHostValve.
> > > ja
> > > va:170)
> > > >        at
> > > org.apache.catalina.valves.ErrorReportValve.invoke(ErrorReportValve.
> > > ja
> > > va:103)
> > > >        at
> > > org.apache.catalina.valves.AccessLogValve.invoke(AccessLogValve.java
> > > :9
> > > 50)
> > > >        at
> > > org.apache.catalina.core.StandardEngineValve.invoke(StandardEngineVa
> > > lv
> > > e.java:116)
> > > >        at
> > > org.apache.catalina.connector.CoyoteAdapter.service(CoyoteAdapter.ja
> > > va
> > > :421)
> > > >        at
> > > org.apache.coyote.http11.AbstractHttp11Processor.process(AbstractHtt
> > > p1
> > > 1Processor.java:1074)
> > > >        at
> > > org.apache.coyote.AbstractProtocol$AbstractConnectionHandler.process
> > > (A
> > > bstractProtocol.java:611)
> > > >        at
> > > org.apache.tomcat.util.net.JIoEndpoint$SocketProcessor.run(JIoEndpoi
> > > nt
> > > .java:314)
> > > >        at
> > > java.util.concurrent.ThreadPoolExecutor.runWorker(ThreadPoolExecutor
> > > .j
> > > ava:1145)
> > > >        at
> > > java.util.concurrent.ThreadPoolExecutor$Worker.run(ThreadPoolExecutor.
> > > java:615)
> > > >        at
> > > org.apache.tomcat.util.threads.TaskThread$WrappingRunnable.run(TaskT
> > > hr
> > > ead.java:61)
> > > >        at java.lang.Thread.run(Thread.java:745)
> > > >
> > > > What is the problem?
> > > >
> > > >
> > > > Best regards,
> > > >
> > > >
> > > >
> > > > Tao Li
> > > >
> > > >
> > > >
> > > >
> > > >
> > >
> >
> ???(????????????????????????????????????????????????????????????????????????????????????????????????????????????????????????????????????????????????????????????????????????????,?????????????????????
> > > > This email message (including any attachments) is confidential and
> > > > may
> > > be legally privileged. If you have received it by mistake, please
> > > notify the sender by return email and delete this message from your
> > > system. Any unauthorized use or dissemination of this message in
> > > whole or in part is strictly prohibited. Envision Energy Limited and
> > > all its subsidiaries shall not be liable for the improper or
> > > incomplete transmission of the information contained in this email
> > > nor for any delay in its receipt or damage to your system. Envision
> > > Energy Limited does not guarantee the integrity of this email
> > > message, nor that this email message is free of viruses,
> interceptions, or interference.
> > >
> > >
> > >
> > >
> > >
> > > 本邮件(包括任何附件)内容机密并受法律保护。如果您意外地收到这封邮件,请回复通知发件人并从当前系统中删除本邮件。任何未经授权者,严禁使用
> > > 并部
> > > 分或者全部的转发本条信息。任何未经授权的使用或传播都是被严格禁止的。远景能源与其分公司不对因不正确和不完整的转发此邮件包含的信息以及因任
> > > 何因
> > > 邮件延迟或对你的系统造成的损害而负责。远景能源不能保证此邮件的真实完整性,也不能确定此邮件是否含有病毒或者监听程序。
> > > This email message (including any attachments) is confidential and
> > > may be legally privileged. If you have received it by mistake,
> > > please notify the sender by return email and delete this message
> > > from your system. Any unauthorized use or dissemination of this
> > > message in whole or in part is strictly prohibited. Envision Energy
> > > Limited and all its subsidiaries shall not be liable for the
> > > improper or incomplete transmission of the information contained in
> > > this email nor for any delay in its receipt or damage to your
> > > system. Envision Energy Limited does not guarantee the integrity of
> > > this email message, nor that this email message is free of viruses,
> interceptions, or interference.
> > >
> >
> >
> >
> > --
> > Best regards,
> >
> > Shaofeng Shi
> >
> >
> >
> >
> > 本邮件(包括任何附件)内容机密并受法律保护。如果您意外地收到这封邮件,请回复通知发件人并从当前系统中删除本邮件。任何未经授权者,严禁使用并部
> > 分或者全部的转发本条信息。任何未经授权的使用或传播都是被严格禁止的。远景能源与其分公司不对因不正确和不完整的转发此邮件包含的信息以及因任何因
> > 邮件延迟或对你的系统造成的损害而负责。远景能源不能保证此邮件的真实完整性,也不能确定此邮件是否含有病毒或者监听程序。
> > This email message (including any attachments) is confidential and may
> > be legally privileged. If you have received it by mistake, please
> > notify the sender by return email and delete this message from your
> > system. Any unauthorized use or dissemination of this message in whole
> > or in part is strictly prohibited. Envision Energy Limited and all its
> > subsidiaries shall not be liable for the improper or incomplete
> > transmission of the information contained in this email nor for any
> > delay in its receipt or damage to your system. Envision Energy Limited
> > does not guarantee the integrity of this email message, nor that this
> > email message is free of viruses, interceptions, or interference.
> >
>
>
>
> --
> Regards,
>
> *Bin Mahone | 马洪宾*
> Apache Kylin: http://kylin.io
> Github: https://github.com/binmahone
>
>
>
>
> 本邮件(包括任何附件)内容机密并受法律保护。如果您意外地收到这封邮件,请回复通知发件人并从当前系统中删除本邮件。任何未经授权者,严禁使用并部分或者全部的转发本条信息。任何未经授权的使用或传播都是被严格禁止的。远景能源与其分公司不对因不正确和不完整的转发此邮件包含的信息以及因任何因邮件延迟或对你的系统造成的损害而负责。远景能源不能保证此邮件的真实完整性,也不能确定此邮件是否含有病毒或者监听程序。
> This email message (including any attachments) is confidential and may be
> legally privileged. If you have received it by mistake, please notify the
> sender by return email and delete this message from your system. Any
> unauthorized use or dissemination of this message in whole or in part is
> strictly prohibited. Envision Energy Limited and all its subsidiaries shall
> not be liable for the improper or incomplete transmission of the
> information contained in this email nor for any delay in its receipt or
> damage to your system. Envision Energy Limited does not guarantee the
> integrity of this email message, nor that this email message is free of
> viruses, interceptions, or interference.
>



-- 
Best regards,

Shaofeng Shi

Reply via email to