xiangmy21 commented on code in PR #17065:
URL: https://github.com/apache/iotdb/pull/17065#discussion_r2734546826
##########
iotdb-core/datanode/src/main/java/org/apache/iotdb/db/queryengine/plan/statement/metadata/ShowStatement.java:
##########
@@ -59,6 +59,13 @@ public void setOffset(long offset) {
this.offset = offset;
}
+ public long getLimitWithOffset() {
+ if (limit <= 0) {
+ return limit;
+ }
Review Comment:
Both limit and offset are of type long, so overflow is unlikely in practice.
--
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]