[CARBONDATA-4335] Disable MV by default
authorMahesh Raju Somalaraju <mahesh.somalaraju@huawei.com>
Tue, 10 May 2022 14:16:44 +0000 (19:46 +0530)
committerIndhumathi27 <indhumathim27@gmail.com>
Thu, 2 Jun 2022 05:18:03 +0000 (10:48 +0530)
commit33408be14b218bd6a7d9b5191a158c37de6d0c81
tree4685e49b309f3469f1e521e8aed766189cc22c9a
parent57e76eea58b05bed2da3e6e6a073e093a332b2cc
[CARBONDATA-4335] Disable MV by default

Why is this PR needed?
Currently materialized view(mv) is enabled by default. In concurrent scenarios
with default mv enabled each session is going through the list of databases
even though mv not used. Due to this query time increased.

What changes were proposed in this PR?
Disable mv by default as users using mv rarely. If user required then enable
and use it.

Does this PR introduce any user interface change?
No

Is any new testcase added?
Yes

This closes #4264
23 files changed:
core/src/main/java/org/apache/carbondata/core/constants/CarbonCommonConstants.java
docs/configuration-parameters.md
integration/flink/src/test/scala/org/apache/carbon/flink/TestCarbonPartitionWriter.scala
integration/flink/src/test/scala/org/apache/carbon/flink/TestCarbonWriter.scala
integration/spark/src/test/scala/org/apache/carbondata/view/MVTest.scala
integration/spark/src/test/scala/org/apache/carbondata/view/rewrite/MVCoalesceTestCase.scala
integration/spark/src/test/scala/org/apache/carbondata/view/rewrite/MVCountAndCaseTestCase.scala
integration/spark/src/test/scala/org/apache/carbondata/view/rewrite/MVCreateTestCase.scala
integration/spark/src/test/scala/org/apache/carbondata/view/rewrite/MVFilterAndJoinTest.scala
integration/spark/src/test/scala/org/apache/carbondata/view/rewrite/MVIncrementalLoadingTestcase.scala
integration/spark/src/test/scala/org/apache/carbondata/view/rewrite/MVInvalidTestCase.scala
integration/spark/src/test/scala/org/apache/carbondata/view/rewrite/MVMultiJoinTestCase.scala
integration/spark/src/test/scala/org/apache/carbondata/view/rewrite/MVRewriteTestCase.scala
integration/spark/src/test/scala/org/apache/carbondata/view/rewrite/MVSampleTestCase.scala
integration/spark/src/test/scala/org/apache/carbondata/view/rewrite/MVTPCDSTestCase.scala
integration/spark/src/test/scala/org/apache/carbondata/view/rewrite/MVTpchTestCase.scala
integration/spark/src/test/scala/org/apache/carbondata/view/rewrite/SelectAllColumnsSuite.scala
integration/spark/src/test/scala/org/apache/carbondata/view/rewrite/TestAllOperationsOnMV.scala
integration/spark/src/test/scala/org/apache/carbondata/view/rewrite/TestPartitionWithMV.scala
integration/spark/src/test/scala/org/apache/carbondata/view/timeseries/TestCreateMVWithTimeSeries.scala
integration/spark/src/test/scala/org/apache/carbondata/view/timeseries/TestMVTimeSeriesLoadAndQuery.scala
integration/spark/src/test/scala/org/apache/carbondata/view/timeseries/TestMVTimeSeriesQueryRollUp.scala
integration/spark/src/test/scala/org/apache/spark/carbondata/register/TestRegisterCarbonTable.scala