[ https://issues.apache.org/jira/browse/KYLIN-4001?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=16848588#comment-16848588 ]
ASF subversion and git services commented on KYLIN-4001: -------------------------------------------------------- Commit 876d420812a09270455bfbb78204010c81cab612 in kylin's branch refs/heads/dynamic-measure from ning.guo [ https://gitbox.apache.org/repos/asf?p=kylin.git;h=876d420 ] KYLIN-4001 Allow user-specified time format using real-time for ui > Allow user-specified time format using real-time > ------------------------------------------------ > > Key: KYLIN-4001 > URL: https://issues.apache.org/jira/browse/KYLIN-4001 > Project: Kylin > Issue Type: Improvement > Components: Real-time Streaming > Reporter: ning guo > Priority: Minor > Fix For: v3.0.0 > > > * I found that real-time only supports millisecond timestamp, does not > support second timestamp and Date type like '2019-01-01 11:11:11'. > * I add a LongTimeParser and a DateTimeParser and page configuration > * You can configure tsParser, tsPattern on the page that creates the > streaming table. > * for date : > {code:java} > { "timestamp":"2019-04-29 11:11:11","gmv":1.1 } > You can specify > tsParser=org.apache.kylin.stream.source.kafka.DateTimeParser > tsPattern=yyyy-MM-dd HH:mm:ss{code} > > * for second : > {code:java} > { "timestamp":"1556618887","gmv":1.1 } > You can specify > tsParser=org.apache.kylin.stream.source.kafka.LongTimeParser > tsPattern=S{code} > > * for millisecond : > {code:java} > { "timestamp":"1556618887000","gmv":1.1 } > You can specify > tsParser=org.apache.kylin.stream.source.kafka.LongTimeParser > tsPattern=MS > {code} > > -- This message was sent by Atlassian JIRA (v7.6.3#76005)