stalary commented on code in PR #12239: URL: https://github.com/apache/doris/pull/12239#discussion_r960129421
########## fe/fe-core/src/main/java/org/apache/doris/httpv2/util/streamresponse/StreamResponseInf.java: ########## @@ -0,0 +1,56 @@ +// Licensed to the Apache Software Foundation (ASF) under one +// or more contributor license agreements. See the NOTICE file +// distributed with this work for additional information +// regarding copyright ownership. The ASF licenses this file +// to you under the Apache License, Version 2.0 (the +// "License"); you may not use this file except in compliance +// with the License. You may obtain a copy of the License at +// +// http://www.apache.org/licenses/LICENSE-2.0 +// +// Unless required by applicable law or agreed to in writing, +// software distributed under the License is distributed on an +// "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY +// KIND, either express or implied. See the License for the +// specific language governing permissions and limitations +// under the License. + +package org.apache.doris.httpv2.util.streamresponse; + +import java.io.PrintWriter; +import java.sql.ResultSet; +import javax.servlet.http.HttpServletResponse; + +/** + * StreamResponseInf use response.getWriter() to response client + */ +public abstract class StreamResponseInf { Review Comment: Why does it end in Inf ########## fe/fe-core/src/main/java/org/apache/doris/httpv2/rest/StmtExecutionAction.java: ########## @@ -100,7 +100,11 @@ public Object executeSQL(@PathVariable(value = NS_KEY) String ns, @PathVariable( ConnectContext.get().changeDefaultCatalog(ns); ConnectContext.get().setDatabase(getFullDbName(dbName)); - return executeQuery(authInfo, stmtRequestBody.is_sync, stmtRequestBody.limit, stmtRequestBody); + + String streamHeader = request.getHeader("X-Doris-Stream"); + boolean isStream = !("false".equalsIgnoreCase(streamHeader)); Review Comment: Why not use "true".equalsIgnoreCase(streamHeader), it can not use stream when streamHeader is null. -- 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: commits-unsubscr...@doris.apache.org For queries about this service, please contact Infrastructure at: us...@infra.apache.org --------------------------------------------------------------------- To unsubscribe, e-mail: commits-unsubscr...@doris.apache.org For additional commands, e-mail: commits-h...@doris.apache.org