You are viewing a plain text version of this content. The canonical link for it is here.
Posted to issues@carbondata.apache.org by GitBox <gi...@apache.org> on 2020/10/13 06:36:56 UTC

[GitHub] [carbondata] Indhumathi27 commented on a change in pull request #3975: [CARBONDATA-3964] Added test case for select query without filter

Indhumathi27 commented on a change in pull request #3975:
URL: https://github.com/apache/carbondata/pull/3975#discussion_r503699146



##########
File path: integration/spark/src/test/scala/org/apache/carbondata/spark/testsuite/filterexpr/CountStarTestCase.scala
##########
@@ -65,6 +65,51 @@ class CountStarTestCase extends QueryTest with BeforeAndAfterAll {
         CarbonCommonConstants.ENABLE_QUERY_STATISTICS_DEFAULT)
   }
 
+  test("select query without filter should not be pruned with multi thread") {
+    val numOfThreadsForPruning = CarbonProperties.getNumOfThreadsForPruning
+    val carbonDriverPruningMultiThreadEnableFilesCount =
+      CarbonProperties.getDriverPruningMultiThreadEnableFilesCount
+    CarbonProperties.getInstance()
+      .addProperty(CarbonCommonConstants.CARBON_MAX_DRIVER_THREADS_FOR_BLOCK_PRUNING, "2")
+    CarbonProperties.getInstance()
+      .addProperty(CarbonCommonConstants.CARBON_DRIVER_PRUNING_MULTI_THREAD_ENABLE_FILES_COUNT, "1")
+    try {
+      sql("CREATE TABLE filtertestTables (ID int, date Timestamp, country String, " +
+        "name String, phonetype String, serialname String, salary int) " +
+        "STORED AS carbondata"
+      )
+      val csvFilePath = s"$resourcesPath/datanullmeasurecol.csv"
+      sql(
+        s"LOAD DATA LOCAL INPATH '" + csvFilePath + "' INTO TABLE " +

Review comment:
       can format these lines. reduce to one line




----------------------------------------------------------------
This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.

For queries about this service, please contact Infrastructure at:
users@infra.apache.org