You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@atlas.apache.org by pi...@apache.org on 2021/01/04 05:35:43 UTC
[atlas] branch master updated: ATLAS-4088 : Quick Search: Unable to
get Aggregation Metric when query text is empty
This is an automated email from the ASF dual-hosted git repository.
pinal pushed a commit to branch master
in repository https://gitbox.apache.org/repos/asf/atlas.git
The following commit(s) were added to refs/heads/master by this push:
new eb36a7f ATLAS-4088 : Quick Search: Unable to get Aggregation Metric when query text is empty
eb36a7f is described below
commit eb36a7fdecbf433f4b689392d8d61daa5f4b8ec3
Author: Pinal <pinal-shah>
AuthorDate: Wed Dec 23 16:29:21 2020 +0530
ATLAS-4088 : Quick Search: Unable to get Aggregation Metric when query text is empty
---
.../apache/atlas/repository/graphdb/janus/AtlasSolrQueryBuilder.java | 2 +-
1 file changed, 1 insertion(+), 1 deletion(-)
diff --git a/graphdb/janus/src/main/java/org/apache/atlas/repository/graphdb/janus/AtlasSolrQueryBuilder.java b/graphdb/janus/src/main/java/org/apache/atlas/repository/graphdb/janus/AtlasSolrQueryBuilder.java
index 43114e9..5712fd3 100644
--- a/graphdb/janus/src/main/java/org/apache/atlas/repository/graphdb/janus/AtlasSolrQueryBuilder.java
+++ b/graphdb/janus/src/main/java/org/apache/atlas/repository/graphdb/janus/AtlasSolrQueryBuilder.java
@@ -89,7 +89,7 @@ public class AtlasSolrQueryBuilder {
StringBuilder queryBuilder = new StringBuilder();
boolean isAndNeeded = false;
- if (queryString != null ) {
+ if (StringUtils.isNotEmpty(queryString)) {
if (LOG.isDebugEnabled()) {
LOG.debug("Initial query string is {}.", queryString);
}