[ https://issues.apache.org/jira/browse/LENS-1450?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=16121227#comment-16121227 ]
Rajat Khandelwal edited comment on LENS-1450 at 8/10/17 8:04 AM: ----------------------------------------------------------------- bq. {noformat} } else if (node.getParent() == null - && node.getToken().getType() != HiveParser.KW_AND) { + && node.getToken().getType() != HiveParser.KW_AND + && node.getChild(0).getType() != HiveParser.KW_AND) { // if node is the only child allFilters.add(HQLParser.getString((ASTNode) node)); } {noformat} Should we add guard against {{node}} not having any children or having 0 sized children list? was (Author: prongs): {noformat} } else if (node.getParent() == null - && node.getToken().getType() != HiveParser.KW_AND) { + && node.getToken().getType() != HiveParser.KW_AND + && node.getChild(0).getType() != HiveParser.KW_AND) { // if node is the only child allFilters.add(HQLParser.getString((ASTNode) node)); } {noformat} Should we add guard against {{node}} not having any children or having 0 sized children list? > filters are getting replicated in jdbc driver query > --------------------------------------------------- > > Key: LENS-1450 > URL: https://issues.apache.org/jira/browse/LENS-1450 > Project: Apache Lens > Issue Type: Bug > Components: cube > Reporter: Rajitha R > Assignee: Rajitha R > Attachments: LENS-1450-2.patch > > > The where filters are getting repeated in some queries for jdbc. This needs > to be fixed -- This message was sent by Atlassian JIRA (v6.4.14#64029)