SudharsanK2308 commented on code in PR #66116:
URL: https://github.com/apache/doris/pull/66116#discussion_r3663206807


##########
fe/fe-core/src/main/java/org/apache/doris/nereids/trees/plans/commands/ShowTabletsFromTableCommand.java:
##########
@@ -201,13 +202,12 @@ public ShowResultSet doRun(ConnectContext ctx, 
StmtExecutor executor) throws Exc
         OlapTable olapTable = 
db.getOlapTableOrAnalysisException(dbTableName.getTbl());
         olapTable.readLock();
         try {
-            long sizeLimit = -1;
+            Optional<Integer> sizeLimit = Optional.empty();
             if (offset > 0 && limit > 0) {
-                sizeLimit = offset + limit;
+                sizeLimit = Optional.of((int) (offset + limit));

Review Comment:
   Since it is already typecast in the [original 
version](https://github.com/apache/doris/pull/66116/changes/BASE..9febaccae52067d1f691176d34790e261e1b42f3#r3663213728),
 I preserved the same. @morrySnow 



-- 
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