core/src/main/java/org/apache/carbondata/core/scan/filter/executer/RowLevelRangeGrtrThanEquaToFilterExecuterImpl.java
/**
   * This method will check whether default value is present in the given filter values
   */
This method will check whether default value is present in the given filter values
This method will check whether default value is present in the given filter values
private void ifDefaultValueMatchesFilter() {
    if (!dimColEvaluatorInfoList.isEmpty() && !isDimensionPresentInCurrentBlock[0]) {
      CarbonDimension dimension = this.dimColEvaluatorInfoList.get(0).getDimension();
      byte[] defaultValue = dimension.getDefaultValue();
      if (null != defaultValue) {
        for (int k = 0; k < filterRangeValues.length; k++) {
          int maxCompare =
              ByteUtil.UnsafeComparer.INSTANCE.compareTo(filterRangeValues[k], defaultValue);
          if (maxCompare <= 0) {
            isDefaultValuePresentInFilter = true;
            break;
          }
        }
      }
    } else if (!msrColEvalutorInfoList.isEmpty() && !isMeasurePresentInCurrentBlock[0]) {
      CarbonMeasure measure = this.msrColEvalutorInfoList.get(0).getMeasure();
      byte[] defaultValue = measure.getDefaultValue();
      if (null != defaultValue) {
        for (int k = 0; k < msrFilterRangeValues.length; k++) {
          int maxCompare = comparator.compare(msrFilterRangeValues[k],
              DataTypeUtil.getMeasureObjectFromDataType(defaultValue, measure.getDataType()));
          if (maxCompare <= 0) {
            isDefaultValuePresentInFilter = true;
            break;
          }
        }
      }
    }
  }
private void ifDefaultValueMatchesFilter ( ) { if ( ! dimColEvaluatorInfoList . isEmpty ( ) && ! isDimensionPresentInCurrentBlock [ 0 ] ) { CarbonDimension dimension = this . dimColEvaluatorInfoList . get ( 0 ) . getDimension ( ) ; byte [ ] defaultValue = dimension . getDefaultValue ( ) ; if ( null != defaultValue ) { for ( int k = 0 ; k < filterRangeValues . length ; k ++ ) { int maxCompare = ByteUtil . UnsafeComparer . INSTANCE . compareTo ( filterRangeValues [ k ] , defaultValue ) ; if ( maxCompare <= 0 ) { isDefaultValuePresentInFilter = true ; break ; } } } } else if ( ! msrColEvalutorInfoList . isEmpty ( ) && ! isMeasurePresentInCurrentBlock [ 0 ] ) { CarbonMeasure measure = this . msrColEvalutorInfoList . get ( 0 ) . getMeasure ( ) ; byte [ ] defaultValue = measure . getDefaultValue ( ) ; if ( null != defaultValue ) { for ( int k = 0 ; k < msrFilterRangeValues . length ; k ++ ) { int maxCompare = comparator . compare ( msrFilterRangeValues [ k ] , DataTypeUtil . getMeasureObjectFromDataType ( defaultValue , measure . getDataType ( ) ) ) ; if ( maxCompare <= 0 ) { isDefaultValuePresentInFilter = true ; break ; } } } } }
This method will check whether default value is present in the given filter values
This method will check whether default value is present in the given filter values