You are viewing a plain text version of this content. The canonical link for it is here.
Posted to issues@carbondata.apache.org by "xubo245 (JIRA)" <ji...@apache.org> on 2018/01/26 03:33:00 UTC
[jira] [Created] (CARBONDATA-2083) timeseries pre-aggregate table
should support hour != 1 , others are the same
xubo245 created CARBONDATA-2083:
-----------------------------------
Summary: 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
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)