yiguolei commented on code in PR #62018:
URL: https://github.com/apache/doris/pull/62018#discussion_r3025456284
##########
fe/fe-core/src/main/java/org/apache/doris/qe/StmtExecutor.java:
##########
@@ -1611,7 +1611,9 @@ private void sendMetaData(ResultSetMetaData metaData)
throws IOException {
}
private void sendMetaData(ResultSetMetaData metaData, List<FieldInfo>
fieldInfos) throws IOException {
- Preconditions.checkState(context.getConnectType() ==
ConnectType.MYSQL);
+ if (context.getConnectType() != ConnectType.MYSQL) {
Review Comment:
I think it will throw exception in the previous code if user send DDL stmt
to via arrow flight protocol. But in the new code, I think it will return
success. But, the stmt is not executed in FE and it is failed actually. User
will not receive any response?
--
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]