Skip to content

Commit

Permalink
3
Browse files Browse the repository at this point in the history
  • Loading branch information
xinyiZzz committed Nov 3, 2023
1 parent b4d9fda commit 4270241
Show file tree
Hide file tree
Showing 3 changed files with 11 additions and 1 deletion.
1 change: 1 addition & 0 deletions be/src/runtime/result_buffer_mgr.h
Original file line number Diff line number Diff line change
Expand Up @@ -17,6 +17,7 @@

#pragma once

#include <arrow/type.h>
#include <gen_cpp/Types_types.h>

#include <ctime>
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -458,7 +458,7 @@ public void execute(TUniqueId queryId) throws Exception {
try {
executeByNereids(queryId);
} catch (NereidsException | ParseException e) {
if (context.getMinidump() != null) {
if (context.getMinidump() != null && context.getMinidump().toString(4) != null) {
MinidumpUtils.saveMinidumpString(context.getMinidump(), DebugUtil.printId(context.queryId()));
}
// try to fall back to legacy planner
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -38,6 +38,7 @@
import org.apache.doris.mysql.MysqlChannel;
import org.apache.doris.mysql.MysqlSerializer;
import org.apache.doris.planner.OriginalPlanner;
import org.apache.doris.qe.ConnectContext.ConnectType;
import org.apache.doris.rewrite.ExprRewriter;
import org.apache.doris.service.FrontendOptions;
import org.apache.doris.thrift.TQueryOptions;
Expand Down Expand Up @@ -380,6 +381,10 @@ public void testKillOtherFail(@Mocked KillStmt killStmt, @Mocked SqlParser parse
killCtx.kill(true);
minTimes = 0;

killCtx.getConnectType();
minTimes = 0;
result = ConnectType.MYSQL;

ConnectContext.get();
minTimes = 0;
result = ctx;
Expand Down Expand Up @@ -437,6 +442,10 @@ public void testKillOther(@Mocked KillStmt killStmt, @Mocked SqlParser parser,
killCtx.kill(true);
minTimes = 0;

killCtx.getConnectType();
minTimes = 0;
result = ConnectType.MYSQL;

ConnectContext.get();
minTimes = 0;
result = ctx;
Expand Down

0 comments on commit 4270241

Please sign in to comment.