xuzifu666 commented on code in PR #4933:
URL: https://github.com/apache/calcite/pull/4933#discussion_r3440087911
##########
core/src/main/java/org/apache/calcite/sql/SqlSelect.java:
##########
@@ -327,4 +361,16 @@ public boolean hasWhere() {
public boolean isKeywordPresent(SqlSelectKeyword targetKeyWord) {
return getModifierNode(targetKeyWord) != null;
}
+
+ public boolean isDistinctOn() {
+ return distinctOn != null && !distinctOn.isEmpty();
+ }
+
+ public @Nullable SqlNodeList getDistinctOn() {
+ return distinctOn;
+ }
+
+ public void setDistinctOn(@Nullable SqlNodeList distinctOn) {
Review Comment:
Yes, it is not needed; the corresponding code has been removed.
--
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]