This is an automated email from the ASF dual-hosted git repository.
dataroaring pushed a commit to branch master
in repository https://gitbox.apache.org/repos/asf/doris.git
The following commit(s) were added to refs/heads/master by this push:
new 5e9a23e6439 [fix](prepare statement) Not supported such prepared
statement if prepare a forward master sql (#26512)
5e9a23e6439 is described below
commit 5e9a23e6439aad102550389d61ffc2c1cceb86af
Author: meiyi <[email protected]>
AuthorDate: Tue Nov 7 19:41:44 2023 +0800
[fix](prepare statement) Not supported such prepared statement if prepare a
forward master sql (#26512)
---
fe/fe-core/src/main/java/org/apache/doris/qe/StmtExecutor.java | 6 ++++++
1 file changed, 6 insertions(+)
diff --git a/fe/fe-core/src/main/java/org/apache/doris/qe/StmtExecutor.java
b/fe/fe-core/src/main/java/org/apache/doris/qe/StmtExecutor.java
index 82d6188bfce..ec3a5a79586 100644
--- a/fe/fe-core/src/main/java/org/apache/doris/qe/StmtExecutor.java
+++ b/fe/fe-core/src/main/java/org/apache/doris/qe/StmtExecutor.java
@@ -531,6 +531,9 @@ public class StmtExecutor {
if (logicalPlan instanceof Forward) {
redirectStatus = ((Forward) logicalPlan).toRedirectStatus();
if (isForwardToMaster()) {
+ if (context.getCommand() == MysqlCommand.COM_STMT_PREPARE)
{
+ throw new UserException("Forward master command is not
supported for prepare statement");
+ }
if (isProxy) {
// This is already a stmt forwarded from other FE.
// If we goes here, means we can't find a valid Master
FE(some error happens).
@@ -704,6 +707,9 @@ public class StmtExecutor {
queryAnalysisSpan.end();
}
if (isForwardToMaster()) {
+ if (context.getCommand() == MysqlCommand.COM_STMT_PREPARE)
{
+ throw new UserException("Forward master command is not
supported for prepare statement");
+ }
if (isProxy) {
// This is already a stmt forwarded from other FE.
// If goes here, which means we can't find a valid
Master FE(some error happens).
---------------------------------------------------------------------
To unsubscribe, e-mail: [email protected]
For additional commands, e-mail: [email protected]