Github user CarbonDataQA commented on the issue:
https://github.com/apache/carbondata/pull/1856 Build Failed with Spark 2.2.1, Please check CI http://88.99.58.216:8080/job/ApacheCarbonPRBuilder/2259/ --- |
In reply to this post by qiuchenjian-2
Github user CarbonDataQA commented on the issue:
https://github.com/apache/carbondata/pull/1856 Build Failed with Spark 2.1.0, Please check CI http://136.243.101.176:8080/job/ApacheCarbonPRBuilder1/3498/ --- |
In reply to this post by qiuchenjian-2
Github user CarbonDataQA commented on the issue:
https://github.com/apache/carbondata/pull/1856 Build Success with Spark 2.1.0, Please check CI http://136.243.101.176:8080/job/ApacheCarbonPRBuilder1/3508/ --- |
In reply to this post by qiuchenjian-2
Github user CarbonDataQA commented on the issue:
https://github.com/apache/carbondata/pull/1856 Build Failed with Spark 2.2.1, Please check CI http://88.99.58.216:8080/job/ApacheCarbonPRBuilder/2271/ --- |
In reply to this post by qiuchenjian-2
Github user xubo245 commented on the issue:
https://github.com/apache/carbondata/pull/1856 retest this please --- |
In reply to this post by qiuchenjian-2
Github user ravipesala commented on the issue:
https://github.com/apache/carbondata/pull/1856 SDV Build Success , Please check CI http://144.76.159.231:8080/job/ApacheSDVTests/3355/ --- |
In reply to this post by qiuchenjian-2
Github user CarbonDataQA commented on the issue:
https://github.com/apache/carbondata/pull/1856 Build Success with Spark 2.2.1, Please check CI http://88.99.58.216:8080/job/ApacheCarbonPRBuilder/2273/ --- |
In reply to this post by qiuchenjian-2
Github user CarbonDataQA commented on the issue:
https://github.com/apache/carbondata/pull/1856 Build Success with Spark 2.1.0, Please check CI http://136.243.101.176:8080/job/ApacheCarbonPRBuilder1/3510/ --- |
In reply to this post by qiuchenjian-2
Github user xubo245 commented on the issue:
https://github.com/apache/carbondata/pull/1856 @jackylk Please review --- |
In reply to this post by qiuchenjian-2
Github user CarbonDataQA commented on the issue:
https://github.com/apache/carbondata/pull/1856 Build Failed with Spark 2.2.1, Please check CI http://88.99.58.216:8080/job/ApacheCarbonPRBuilder/2298/ --- |
In reply to this post by qiuchenjian-2
Github user CarbonDataQA commented on the issue:
https://github.com/apache/carbondata/pull/1856 Build Failed with Spark 2.1.0, Please check CI http://136.243.101.176:8080/job/ApacheCarbonPRBuilder1/3534/ --- |
In reply to this post by qiuchenjian-2
Github user ravipesala commented on the issue:
https://github.com/apache/carbondata/pull/1856 SDV Build Success , Please check CI http://144.76.159.231:8080/job/ApacheSDVTests/3376/ --- |
In reply to this post by qiuchenjian-2
Github user CarbonDataQA commented on the issue:
https://github.com/apache/carbondata/pull/1856 Build Success with Spark 2.2.1, Please check CI http://88.99.58.216:8080/job/ApacheCarbonPRBuilder/2301/ --- |
In reply to this post by qiuchenjian-2
Github user CarbonDataQA commented on the issue:
https://github.com/apache/carbondata/pull/1856 Build Success with Spark 2.1.0, Please check CI http://136.243.101.176:8080/job/ApacheCarbonPRBuilder1/3537/ --- |
In reply to this post by qiuchenjian-2
Github user ravipesala commented on the issue:
https://github.com/apache/carbondata/pull/1856 SDV Build Success , Please check CI http://144.76.159.231:8080/job/ApacheSDVTests/3379/ --- |
In reply to this post by qiuchenjian-2
Github user CarbonDataQA commented on the issue:
https://github.com/apache/carbondata/pull/1856 Build Success with Spark 2.1.0, Please check CI http://136.243.101.176:8080/job/ApacheCarbonPRBuilder1/3544/ --- |
In reply to this post by qiuchenjian-2
Github user CarbonDataQA commented on the issue:
https://github.com/apache/carbondata/pull/1856 Build Success with Spark 2.2.1, Please check CI http://88.99.58.216:8080/job/ApacheCarbonPRBuilder/2307/ --- |
In reply to this post by qiuchenjian-2
Github user ravipesala commented on the issue:
https://github.com/apache/carbondata/pull/1856 SDV Build Success , Please check CI http://144.76.159.231:8080/job/ApacheSDVTests/3386/ --- |
In reply to this post by qiuchenjian-2
Github user sraghunandan commented on a diff in the pull request:
https://github.com/apache/carbondata/pull/1856#discussion_r167120975 --- Diff: integration/spark-common-test/src/test/scala/org/apache/carbondata/integration/spark/testsuite/timeseries/TestTimeSeriesDropSuite.scala --- @@ -36,16 +48,168 @@ class TestTimeSeriesDropSuite extends QueryTest with BeforeAndAfterAll with Befo """.stripMargin) } - test("test timeseries drop datamap 1: drop datamap should throw exception if no datamap") { + override def afterEach(): Unit = { + dropDataMaps("mainTable", "agg1_second", "agg1_minute", + "agg1_hour", "agg1_day", "agg1_month", "agg1_year") + } + + test("test timeseries drop datamap 1: drop datamap should throw exception") { // DROP DATAMAP DataMapName if the DataMapName not exists checkExistence(sql("SHOW DATAMAP ON TABLE mainTable"), false, "agg1_month") val e: Exception = intercept[Exception] { sql(s"DROP DATAMAP agg1_month ON TABLE mainTable") } - assert(e.getMessage.equals("Datamap with name agg1_month does not exist under table mainTable")) + assert(e.getMessage.contains( + "Datamap with name agg1_month does not exist under table mainTable")) + } + + test("test timeseries drop datamap 2: should support drop datamap IF EXISTS") { + // DROP DATAMAP IF EXISTS DataMapName + checkExistence(sql("SHOW DATAMAP ON TABLE mainTable"), false, "agg1_month") + sql(s"DROP DATAMAP IF EXISTS agg1_month ON TABLE mainTable") + assert(true) + } + + test("test timeseries drop datamap 3: should support drop datamap") { + sql( + s""" + | CREATE DATAMAP agg1_month ON TABLE mainTable + | USING '$timeSeries' + | DMPROPERTIES ( + | 'event_time'='dataTime', + | 'MONTH_GRANULARITY'='1') + | AS SELECT dataTime, SUM(age) from mainTable + | GROUP BY dataTime + """.stripMargin) + + // Before DROP DATAMAP + checkExistence(sql("SHOW DATAMAP ON TABLE mainTable"), true, "agg1_month") + + // DROP DATAMAP DataMapName + sql(s"DROP DATAMAP agg1_month ON TABLE mainTable") + checkExistence(sql("SHOW DATAMAP ON TABLE mainTable"), false, "agg1_month") + val e: Exception = intercept[Exception] { + sql(s"DROP DATAMAP agg1_month ON TABLE mainTable") + } + assert(e.getMessage.contains( + "Datamap with name agg1_month does not exist under table mainTable")) + } + + test("test timeseries drop datamap 4: should support drop datamap with IF EXISTS") { + sql( + s""" + | CREATE DATAMAP agg1_month ON TABLE mainTable + | USING '$timeSeries' + | DMPROPERTIES ( + | 'event_time'='dataTime', + | 'MONTH_GRANULARITY'='1') + | AS SELECT dataTime, SUM(age) from mainTable + | GROUP BY dataTime + """.stripMargin) + // DROP DATAMAP IF EXISTS DataMapName + sql(s"DROP DATAMAP IF EXISTS agg1_year ON TABLE mainTable") + checkExistence(sql("SHOW DATAMAP ON TABLE maintable"), false, "agg1_year") + checkExistence(sql("SHOW DATAMAP ON TABLE mainTable"), true, "agg1_month") + + // DROP DATAMAP DataMapName + sql(s"DROP DATAMAP agg1_month ON TABLE mainTable") + checkExistence(sql("SHOW DATAMAP ON TABLE mainTable"), false, "agg1_month") + val e: Exception = intercept[Exception] { + sql(s"DROP DATAMAP agg1_month ON TABLE mainTable") + } + assert(e.getMessage.contains( + "Datamap with name agg1_month does not exist under table mainTable")) + } + + test("test timeseries drop datamap 5: drop datamap when table not exists") { --- End diff -- Modify the existing test case to catch MalformedCarbonCommandException --- |
In reply to this post by qiuchenjian-2
Github user CarbonDataQA commented on the issue:
https://github.com/apache/carbondata/pull/1856 Build Success with Spark 2.2.1, Please check CI http://88.99.58.216:8080/job/ApacheCarbonPRBuilder/2375/ --- |
Free forum by Nabble | Edit this page |