[
https://issues.apache.org/jira/browse/CARBONDATA-2083?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel ]
xubo245 updated CARBONDATA-2083:
--------------------------------
Summary: Timeseries pre-aggregate table should support hour != 1 , others are the same (was: timeseries pre-aggregate table should support hour != 1 , others are the same )
> Timeseries pre-aggregate table should support hour != 1 , others are the same
> ------------------------------------------------------------------------------
>
> Key: CARBONDATA-2083
> URL:
https://issues.apache.org/jira/browse/CARBONDATA-2083> Project: CarbonData
> Issue Type: Bug
> Components: core, spark-integration
> Affects Versions: 1.3.0
> Reporter: xubo245
> Priority: Major
> Fix For: 1.3.0
>
>
> test case find the error:
> {code:java}
> test("test timeseries create table 13: don't support hour=2") {
> try {
> sql(
> """create datamap agg1 on table mainTable using 'preaggregate'
> |DMPROPERTIES (
> | 'timeseries.eventTime'='dataTime',
> | 'timeseries.hierarchy'='hour=2')
> |as select dataTime, sum(age) from mainTable
> |group by dataTime
> """.stripMargin)
> assert(false)
> } catch {
> case e: MalformedCarbonCommandException =>
> assert(e.getMessage.contains("Unsupported Value for hierarchy:hour=2"))
> } finally {
> checkExistence(sql("show tables"), false, "maintable_agg1_hour")
> }
> }
> {code}
--
This message was sent by Atlassian JIRA
(v7.6.3#76005)