ranger-commits mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From pengjian...@apache.org
Subject ranger git commit: RANGER-2248: Sorting does not work in AbstractPredicateUtil.java
Date Fri, 26 Oct 2018 06:01:20 GMT
Repository: ranger
Updated Branches:
  refs/heads/master da0e8ce36 -> 3b3e56f27


RANGER-2248: Sorting does not work in AbstractPredicateUtil.java

Signed-off-by: peng.jianhua <peng.jianhua@zte.com.cn>


Project: http://git-wip-us.apache.org/repos/asf/ranger/repo
Commit: http://git-wip-us.apache.org/repos/asf/ranger/commit/3b3e56f2
Tree: http://git-wip-us.apache.org/repos/asf/ranger/tree/3b3e56f2
Diff: http://git-wip-us.apache.org/repos/asf/ranger/diff/3b3e56f2

Branch: refs/heads/master
Commit: 3b3e56f27c0f411bfbc36ed493ca4d018a6820c7
Parents: da0e8ce
Author: zhangqiang2 <zhangqiang2@zte.com.cn>
Authored: Thu Oct 11 15:26:01 2018 +0800
Committer: peng.jianhua <peng.jianhua@zte.com.cn>
Committed: Fri Oct 26 14:00:32 2018 +0800

----------------------------------------------------------------------
 .../java/org/apache/ranger/plugin/store/AbstractPredicateUtil.java | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)
----------------------------------------------------------------------


http://git-wip-us.apache.org/repos/asf/ranger/blob/3b3e56f2/agents-common/src/main/java/org/apache/ranger/plugin/store/AbstractPredicateUtil.java
----------------------------------------------------------------------
diff --git a/agents-common/src/main/java/org/apache/ranger/plugin/store/AbstractPredicateUtil.java
b/agents-common/src/main/java/org/apache/ranger/plugin/store/AbstractPredicateUtil.java
index 4d2bc62..7446df6 100644
--- a/agents-common/src/main/java/org/apache/ranger/plugin/store/AbstractPredicateUtil.java
+++ b/agents-common/src/main/java/org/apache/ranger/plugin/store/AbstractPredicateUtil.java
@@ -101,7 +101,7 @@ public class AbstractPredicateUtil {
 	}
 
 	public Comparator<RangerBaseModelObject> getSorter(SearchFilter filter) {
-		String sortBy = filter == null ? null : filter.getParam(SearchFilter.SORT_BY);
+		String sortBy = filter == null ? null : filter.getSortBy();
 
 		if(StringUtils.isEmpty(sortBy)) {
 			return null;


Mime
View raw message