Uploaded image for project: 'CarbonData'
  1. CarbonData
  2. CARBONDATA-2083

Timeseries pre-aggregate table should support hour != 1 , others are the same

    XMLWordPrintableJSON

Details

    • Bug
    • Status: Closed
    • Major
    • Resolution: Won't Fix
    • 1.3.0
    • 1.3.0
    • core, spark-integration
    • None

    Description

      test case find the error:

        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")
          }
        }
      

      Attachments

        Issue Links

          Activity

            People

              Unassigned Unassigned
              xubo245 Bo Xu
              Votes:
              0 Vote for this issue
              Watchers:
              1 Start watching this issue

              Dates

                Created:
                Updated:
                Resolved:

                Time Tracking

                  Estimated:
                  Original Estimate - Not Specified
                  Not Specified
                  Remaining:
                  Remaining Estimate - 0h
                  0h
                  Logged:
                  Time Spent - 40m
                  40m