Uploaded image for project: 'Kylin'
  1. Kylin
  2. KYLIN-4229

String index out of range -1

    XMLWordPrintableJSON

Details

    • Bug
    • Status: Closed
    • Major
    • Resolution: Fixed
    • v3.0.0-beta
    • v3.0.0
    • Job Engine
    • None

    Description

      Build cube with "where clause to filter data from source" will get the error "String index out of range -1"

      java.lang.StringIndexOutOfBoundsException: String index out of range: -1
              at java.lang.StringBuffer.setCharAt(StringBuffer.java:255)
              at org.apache.commons.lang3.time.FastDatePrinter$PaddedNumberField.appendTo(FastDatePrinter.java:885)
              at org.apache.commons.lang3.time.FastDatePrinter$PaddedNumberField.appendTo(FastDatePrinter.java:870)
              at org.apache.commons.lang3.time.FastDatePrinter.applyRules(FastDatePrinter.java:493)
              at org.apache.commons.lang3.time.FastDatePrinter.applyRulesToString(FastDatePrinter.java:427)
              at org.apache.commons.lang3.time.FastDatePrinter.format(FastDatePrinter.java:446)
              at org.apache.commons.lang3.time.FastDateFormat.format(FastDateFormat.java:434)
              at org.apache.kylin.common.util.DateFormat.formatToDateStr(DateFormat.java:69)
              at org.apache.kylin.job.JoinedFormatter.setDateEnv(JoinedFormatter.java:74)
              at org.apache.kylin.job.JoinedFormatter.<init>(JoinedFormatter.java:56)
              at org.apache.kylin.job.JoinedFlatTable.appendWhereStatement(JoinedFlatTable.java:228)
              at org.apache.kylin.job.JoinedFlatTable.generateSelectDataStatement(JoinedFlatTable.java:164)
              at org.apache.kylin.job.JoinedFlatTable.generateSelectDataStatement(JoinedFlatTable.java:136)
              at org.apache.kylin.job.JoinedFlatTable.generateInsertDataStatement(JoinedFlatTable.java:131)
              at org.apache.kylin.source.hive.HiveInputBase.createFlatHiveTableStep(HiveInputBase.java:319)
              at org.apache.kylin.source.hive.HiveInputBase$BaseBatchCubingInputSide.addStepPhase1_DoCreateFlatTable(HiveInputBase.java:259)
              at org.apache.kylin.source.hive.HiveInputBase$BaseBatchCubingInputSide.addStepPhase1_CreateFlatTable(HiveInputBase.java:89)
              at org.apache.kylin.engine.mr.BatchCubingJobBuilder2.build(BatchCubingJobBuilder2.java:59)
              at org.apache.kylin.engine.mr.MRBatchCubingEngine2.createBatchCubingJob(MRBatchCubingEngine2.java:42)
              at org.apache.kylin.engine.EngineFactory.createBatchCubingJob(EngineFactory.java:61)
              at org.apache.kylin.rest.service.JobService.submitJobInternal(JobService.java:247)
              at org.apache.kylin.rest.service.JobService.submitJob(JobService.java:215)
              at org.apache.kylin.rest.controller.CubeController.buildInternal(CubeController.java:402)
              at org.apache.kylin.rest.controller.CubeController.rebuild(CubeController.java:362)
              at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
              at sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:62)
              at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:43)
              at java.lang.reflect.Method.invoke(Method.java:498)
              at org.springframework.web.method.support.InvocableHandlerMethod.doInvoke(InvocableHandlerMethod.java:205)
              at org.springframework.web.method.support.InvocableHandlerMethod.invokeForRequest(InvocableHandlerMethod.java:133)
              at org.springframework.web.servlet.mvc.method.annotation.ServletInvocableHandlerMethod.invokeAndHandle(ServletInvocableHandlerMethod.java:97)
              at org.springframework.web.servlet.mvc.method.annotation.RequestMappingHandlerAdapter.invokeHandlerMethod(RequestMappingHandlerAdapter.java:827)
              at org.springframework.web.servlet.mvc.method.annotation.RequestMappingHandlerAdapter.handleInternal(RequestMappingHandlerAdapter.java:738)
              at org.springframework.web.servlet.mvc.method.AbstractHandlerMethodAdapter.handle(AbstractHandlerMethodAdapter.java:85)
              at org.springframework.web.servlet.DispatcherServlet.doDispatch(DispatcherServlet.java:967)
              at org.springframework.web.servlet.DispatcherServlet.doService(DispatcherServlet.java:901)
              at org.springframework.web.servlet.FrameworkServlet.processRequest(FrameworkServlet.java:970)
              at org.springframework.web.servlet.FrameworkServlet.doPut(FrameworkServlet.java:883)
              at javax.servlet.http.HttpServlet.service(HttpServlet.java:653)
              at org.springframework.web.servlet.FrameworkServlet.service(FrameworkServlet.java:846)
              at javax.servlet.http.HttpServlet.service(HttpServlet.java:731)
              at org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(ApplicationFilterChain.java:303)
              at org.apache.catalina.core.ApplicationFilterChain.doFilter(ApplicationFilterChain.java:208)
              at org.springframework.security.web.FilterChainProxy$VirtualFilterChain.doFilter(FilterChainProxy.java:317)
              at org.springframework.security.web.access.intercept.FilterSecurityInterceptor.invoke(FilterSecurityInterceptor.java:127)
              at org.springframework.security.web.access.intercept.FilterSecurityInterceptor.doFilter(FilterSecurityInterceptor.java:91)
      
      

      Attachments

        Issue Links

          Activity

            People

              temple.zhou Temple Zhou
              temple.zhou Temple Zhou
              Votes:
              0 Vote for this issue
              Watchers:
              4 Start watching this issue

              Dates

                Created:
                Updated:
                Resolved: