Github user jackylk commented on a diff in the pull request:
https://github.com/apache/incubator-carbondata/pull/571#discussion_r98162981
--- Diff:
integration/spark2/src/main/scala/org/apache/spark/sql/execution/CarbonLateDecodeStrategy.scala
---
@@ -484,12 +485,14 @@ private[sql] class CarbonLateDecodeStrategy extends
SparkStrategy {
val enableReader = {
if
(sqlContext.sparkSession.conf.contains(CarbonCommonConstants.ENABLE_VECTOR_READER))
{
sqlContext.sparkSession.conf.get(CarbonCommonConstants.ENABLE_VECTOR_READER)
+ } else if
(System.getProperty(CarbonCommonConstants.ENABLE_VECTOR_READER) != null) {
+ System.getProperty(CarbonCommonConstants.ENABLE_VECTOR_READER)
} else {
- System.getProperty(CarbonCommonConstants.ENABLE_VECTOR_READER,
+
CarbonProperties.getInstance().getProperty(CarbonCommonConstants.ENABLE_VECTOR_READER,
CarbonCommonConstants.ENABLE_VECTOR_READER_DEFAULT)
}
}
sqlContext.conf.wholeStageEnabled && enableReader.toBoolean &&
- cols.forall(_.dataType.isInstanceOf[AtomicType])
+ cols.forall(_.dataType.isInstanceOf[AtomicType])
--- End diff --
This style is not correct, right? It is a condition followed last line
---
If your project is set up for it, you can reply to this email and have your
reply appear on GitHub as well. If your project does not have this feature
enabled and wishes so, or if the feature is enabled but not working, please
contact infrastructure at [email protected] or file a JIRA ticket
with INFRA.
---