kylin-issues mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From "liyang (JIRA)" <j...@apache.org>
Subject [jira] [Updated] (KYLIN-2991) Query hit NumberFormatException if partitionDateFormat is not yyyy-MM-dd
Date Fri, 03 Nov 2017 06:12:00 GMT

     [ https://issues.apache.org/jira/browse/KYLIN-2991?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel
]

liyang updated KYLIN-2991:
--------------------------
    Summary: Query hit NumberFormatException if partitionDateFormat is not yyyy-MM-dd  (was:
Query hit NumberFormatException if partitionDateFormat is like yyyyMMdd)

> Query hit NumberFormatException if partitionDateFormat is not yyyy-MM-dd
> ------------------------------------------------------------------------
>
>                 Key: KYLIN-2991
>                 URL: https://issues.apache.org/jira/browse/KYLIN-2991
>             Project: Kylin
>          Issue Type: Bug
>          Components: Query Engine
>    Affects Versions: v2.2.0
>            Reporter: liyang
>            Assignee: liyang
>            Priority: Major
>
> For example, partition date column is {{MONTH_ID}}, partition date format is {{yyyyMMdd}},
query can hit following exception:
> {Code}
> Caused by: java.lang.NumberFormatException: For input string: "2016-01-01"
> at java.lang.NumberFormatException.forInputString(NumberFormatException.java:65)
> at java.lang.Long.parseLong(Long.java:589)
> at java.lang.Long.parseLong(Long.java:631)
> at org.apache.kylin.dimension.IntegerDimEnc.encode(IntegerDimEnc.java:99)
> at org.apache.kylin.dimension.IntegerDimEnc$IntegerSerializer.serialize(IntegerDimEnc.java:153)
> at org.apache.kylin.cube.gridtable.CubeCodeSystem.encodeColumnValue(CubeCodeSystem.java:135)
> at org.apache.kylin.cube.gridtable.SegmentGTStartAndEnd.encodeTime(SegmentGTStartAndEnd.java:86)
> at org.apache.kylin.cube.gridtable.SegmentGTStartAndEnd.getSegmentStartAndEnd(SegmentGTStartAndEnd.java:51)
> at org.apache.kylin.storage.gtrecord.CubeScanRangePlanner.(CubeScanRangePlanner.java:114)
> at org.apache.kylin.storage.gtrecord.CubeSegmentScanner.(CubeSegmentScanner.java:73)
> at org.apache.kylin.storage.gtrecord.GTC
> {Code}



--
This message was sent by Atlassian JIRA
(v6.4.14#64029)

Mime
View raw message