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:43:00 UTC

[jira] [Created] (CARBONDATA-2086) Create datamap should throw exception if using improper string

xubo245 created CARBONDATA-2086:
-----------------------------------

             Summary: Create datamap should throw exception if using improper string
                 Key: CARBONDATA-2086
                 URL: https://issues.apache.org/jira/browse/CARBONDATA-2086
             Project: CarbonData
          Issue Type: Bug
          Components: core, spark-integration
    Affects Versions: 1.3.0
            Reporter: xubo245
             Fix For: 1.3.0



Create datamap should throw exception if using improper string

{code:java}

  // TODO: to be fixed, it should throw exception
  ignore("test timeseries create table 34: using") {
    val e: Exception = intercept[Exception] {
      sql(
        """create datamap agg1 on table mainTable
          | using 'abc'
          | DMPROPERTIES (
          |   'timeseries.eventTime'='dataTime',
          |   'timeseries.hierarchy'='second=1,year=1')
          | as select dataTime, sum(age) from mainTable
          | group by dataTime
        """.stripMargin)
    }
    assert(e.getMessage.contains("Don't support abc"))
  }
{code}




--
This message was sent by Atlassian JIRA
(v7.6.3#76005)