Skip to content

Commit

Permalink
Fix checkstyle issues
Browse files Browse the repository at this point in the history
  • Loading branch information
gortiz committed Feb 5, 2025
1 parent c1e8570 commit b9c2b52
Show file tree
Hide file tree
Showing 5 changed files with 4 additions and 5 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -63,6 +63,7 @@ public void onError(Throwable t) {
default:
LOGGER.warn("Mailbox from {} to {} failed with unknown GRPC error on server side",
_context.getStageId(), _receiverStage, t);
break;
}
} else {
LOGGER.warn("Mailbox from {} to {} failed with unknown error on server side",
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -27,7 +27,6 @@
import org.apache.pinot.calcite.rel.hint.PinotHintOptions.JoinHintOptions;
import org.apache.pinot.common.datablock.DataBlock;
import org.apache.pinot.common.datatable.StatMap;
import org.apache.pinot.common.exception.QueryException;
import org.apache.pinot.common.response.ProcessingException;
import org.apache.pinot.common.utils.DataSchema;
import org.apache.pinot.common.utils.config.QueryOptionsUtils;
Expand All @@ -40,6 +39,7 @@
import org.apache.pinot.query.runtime.operator.operands.TransformOperandFactory;
import org.apache.pinot.query.runtime.plan.MultiStageQueryStats;
import org.apache.pinot.query.runtime.plan.OpChainExecutionContext;
import org.apache.pinot.spi.exception.QException;
import org.apache.pinot.spi.utils.BooleanUtils;
import org.apache.pinot.spi.utils.CommonConstants.Broker.Request.QueryOptionKey;
import org.apache.pinot.spi.utils.CommonConstants.MultiStageQueryRunner.JoinOverFlowMode;
Expand Down Expand Up @@ -307,7 +307,7 @@ protected boolean isMaxRowsLimitReached(int numJoinedRows)
protected static void throwProcessingExceptionForJoinRowLimitExceeded(String reason)
throws ProcessingException {
ProcessingException resourceLimitExceededException =
new ProcessingException(QueryException.SERVER_RESOURCE_LIMIT_EXCEEDED_ERROR_CODE);
new ProcessingException(QException.SERVER_RESOURCE_LIMIT_EXCEEDED_ERROR_CODE);
resourceLimitExceededException.setMessage(reason
+ ". Consider increasing the limit for the maximum number of rows in a join either via the query option '"
+ QueryOptionKey.MAX_ROWS_IN_JOIN + "' or the '" + JoinHintOptions.MAX_ROWS_IN_JOIN + "' hint in the '"
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -32,7 +32,6 @@
import org.apache.pinot.query.runtime.blocks.TransferableBlock;
import org.apache.pinot.query.runtime.blocks.TransferableBlockUtils;
import org.apache.pinot.query.runtime.plan.OpChainExecutionContext;
import org.apache.pinot.spi.exception.QException;
import org.apache.pinot.spi.utils.BooleanUtils;
import org.apache.pinot.spi.utils.CommonConstants.MultiStageQueryRunner.JoinOverFlowMode;

Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -295,7 +295,7 @@ protected TransferableBlock onTimeout() {
protected TransferableBlock onException(Exception e) {
// TODO: Should we send the hostname to the users?
String errMsg = "Server " + _serverAddress.hostname() + " found an error while reading on stage "
+ _stats.getCurrentStageId() + " waiting for data sent by stage " + _senderStageId;
+ _stats.getCurrentStageId() + " waiting for data sent by stage " + _senderStageId;
// We log this case as warn because contrary to the timeout case, it should be rare to finish an execution
// with an exception and the stack trace may be useful to find the root cause.
LOGGER.warn(errMsg, e);
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -64,7 +64,6 @@
import org.apache.pinot.sql.parsers.rewriter.PredicateComparisonRewriter;
import org.apache.pinot.sql.parsers.rewriter.QueryRewriter;
import org.apache.pinot.sql.parsers.rewriter.QueryRewriterFactory;
import org.slf4j.MDC;


public class ServerPlanRequestUtils {
Expand Down

0 comments on commit b9c2b52

Please sign in to comment.