Manya0407 commented on code in PR #6560:
URL: https://github.com/apache/hive/pull/6560#discussion_r3491608584
##########
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;
- boolean hasMapGroupBy = false;
private boolean hasLateralViews = false;
private boolean cboSupportedLateralViews = true;
Review Comment:
Added LATERAL_VIEW as a QueryFeature and replaced the boolean usage with
addFeature() / hasFeature()
--
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]