Manya0407 commented on code in PR #6560:
URL: https://github.com/apache/hive/pull/6560#discussion_r3491623040


##########
ql/src/java/org/apache/hadoop/hive/ql/QueryProperties.java:
##########
@@ -64,25 +83,8 @@ public String getName() {
   int outerQueryLimit;
 
   boolean hasJoin = false;
-  boolean hasGroupBy = false;
-  boolean hasOrderBy = false;
-  boolean hasOuterOrderBy = false;
-  boolean hasSortBy = false;
-  boolean hasLimit = false;
-  boolean hasJoinFollowedByGroupBy = false;
-  boolean hasPTF = false;
-  boolean hasWindowing = false;
-  boolean hasQualify = false;
-  boolean hasExcept = false;
-  boolean hasIntersect = false;
-
-  // does the query have a using clause
-  boolean usesScript = false;
-
-  boolean hasDistributeBy = false;
-  boolean hasClusterBy = false;
+  private final EnumSet<QueryFeature> features = 
EnumSet.noneOf(QueryFeature.class);
   boolean mapJoinRemoved = false;

Review Comment:
   Removed mapJoinRemoved since it was only assigned and never read. Checked 
for similar unused QueryProperties flags while updating the class.



-- 
This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.

To unsubscribe, e-mail: [email protected]

For queries about this service, please contact Infrastructure at:
[email protected]


---------------------------------------------------------------------
To unsubscribe, e-mail: [email protected]
For additional commands, e-mail: [email protected]

Reply via email to