xubo245 created CARBONDATA-2082:
-----------------------------------
Summary: timeseries pre-aggregate table should support the blank space
Key: CARBONDATA-2082
URL:
https://issues.apache.org/jira/browse/CARBONDATA-2082 Project: CarbonData
Issue Type: Bug
Components: core, spark-integration
Affects Versions: 1.3.0
Reporter: xubo245
Fix For: 1.3.0
timeseries pre-aggregate table should support the blank space
1.scenario 1
{code:java}
test("test timeseries create table 12: hierarchy type with space") {
try {
sql(
"""create datamap agg1 on table mainTable using 'preaggregate'
|DMPROPERTIES (
| 'timeseries.eventTime'='dataTime',
| 'timeseries.hierarchy'='second= 1,hour=1,day=1,month=1,year=1')
|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:second= 1"))
assert(true)
}
}
{code}
2.scenario 2
second=1, hour=1,day=1,month=1,year=1
--
This message was sent by Atlassian JIRA
(v7.6.3#76005)