minor, fix typo

Project: http://git-wip-us.apache.org/repos/asf/kylin/repo
Commit: http://git-wip-us.apache.org/repos/asf/kylin/commit/5d8adbf0
Tree: http://git-wip-us.apache.org/repos/asf/kylin/tree/5d8adbf0
Diff: http://git-wip-us.apache.org/repos/asf/kylin/diff/5d8adbf0

Branch: refs/heads/ranger
Commit: 5d8adbf0def0a2c034d7a1547e736c8044889fd9
Parents: fae56af
Author: lidongsjtu <lid...@apache.org>
Authored: Fri Sep 8 09:51:19 2017 +0800
Committer: Roger Shi <rogershijich...@gmail.com>
Committed: Fri Sep 8 10:05:44 2017 +0800

----------------------------------------------------------------------
 .../org/apache/kylin/query/relnode/OLAPAggregateRel.java  | 10 +++++-----
 1 file changed, 5 insertions(+), 5 deletions(-)
----------------------------------------------------------------------


http://git-wip-us.apache.org/repos/asf/kylin/blob/5d8adbf0/query/src/main/java/org/apache/kylin/query/relnode/OLAPAggregateRel.java
----------------------------------------------------------------------
diff --git 
a/query/src/main/java/org/apache/kylin/query/relnode/OLAPAggregateRel.java 
b/query/src/main/java/org/apache/kylin/query/relnode/OLAPAggregateRel.java
index 2c2f572..1540483 100644
--- a/query/src/main/java/org/apache/kylin/query/relnode/OLAPAggregateRel.java
+++ b/query/src/main/java/org/apache/kylin/query/relnode/OLAPAggregateRel.java
@@ -73,7 +73,7 @@ import com.google.common.collect.Sets;
 public class OLAPAggregateRel extends Aggregate implements OLAPRel {
 
     private final static Map<String, String> AGGR_FUNC_MAP = new 
HashMap<String, String>();
-    private final static Map<String, Integer> AGGR_FUNC_PARAM_AS_MEASTURE_MAP 
= new HashMap<String, Integer>();
+    private final static Map<String, Integer> AGGR_FUNC_PARAM_AS_MEASURE_MAP = 
new HashMap<String, Integer>();
 
     static {
         AGGR_FUNC_MAP.put("SUM", "SUM");
@@ -91,7 +91,7 @@ public class OLAPAggregateRel extends Aggregate implements 
OLAPRel {
         Map<String, Class<?>> udafs = MeasureTypeFactory.getUDAFs();
         for (String func : udafs.keySet()) {
             try {
-                AGGR_FUNC_PARAM_AS_MEASTURE_MAP.put(func, 
((ParamAsMeasureCount) 
(udafs.get(func).newInstance())).getParamAsMeasureCount());
+                AGGR_FUNC_PARAM_AS_MEASURE_MAP.put(func, 
((ParamAsMeasureCount) 
(udafs.get(func).newInstance())).getParamAsMeasureCount());
             } catch (Exception e) {
                 throw new RuntimeException(e);
             }
@@ -110,7 +110,7 @@ public class OLAPAggregateRel extends Aggregate implements 
OLAPRel {
         String sqlName = getSqlFuncName(aggCall);
         String funcName = AGGR_FUNC_MAP.get(sqlName);
         if (funcName == null) {
-            throw new IllegalStateException("Don't suppoprt aggregation " + 
sqlName);
+            throw new IllegalStateException("Don't support aggregation " + 
sqlName);
         }
         return funcName;
     }
@@ -254,8 +254,8 @@ public class OLAPAggregateRel extends Aggregate implements 
OLAPRel {
                 List<TblColRef> columns = Lists.newArrayList();
                 String funcName = getSqlFuncName(aggCall);
                 int columnsCount = aggCall.getArgList().size();
-                if (AGGR_FUNC_PARAM_AS_MEASTURE_MAP.containsKey(funcName)) {
-                    int asMeasureCnt = 
AGGR_FUNC_PARAM_AS_MEASTURE_MAP.get(funcName);
+                if (AGGR_FUNC_PARAM_AS_MEASURE_MAP.containsKey(funcName)) {
+                    int asMeasureCnt = 
AGGR_FUNC_PARAM_AS_MEASURE_MAP.get(funcName);
                     if (asMeasureCnt > 0) {
                         columnsCount = asMeasureCnt;
                     } else {

Reply via email to