github-actions[bot] commented on code in PR #62474:
URL: https://github.com/apache/doris/pull/62474#discussion_r3077001057


##########
be/test/exec/exchange/exchange_sink_test.h:
##########
@@ -15,20 +15,6 @@
 // specific language governing permissions and limitations
 // under the License.
 
-#include <gtest/gtest.h>

Review Comment:
   Removing these includes breaks the only inclusion site of this header. 
`exchange_sink_test.cpp` includes `exchange_sink_test.h` before it includes 
`<gtest/gtest.h>` or `exec/operator/exchange_sink_buffer.h`, but this header 
uses `testing::Test`, `std::map`, `std::queue`, `Status`, `ExchangeSinkBuffer`, 
`AutoReleaseClosure`, and `PBackendService_Stub` directly. After this deletion 
the test no longer compiles, so the header still needs to include the 
declarations it depends on instead of relying on transitive include order.



##########
be/test/exec/exchange/exchange_sink_test.h:
##########
@@ -15,20 +15,6 @@
 // specific language governing permissions and limitations
 // under the License.
 
-#include <gtest/gtest.h>
-
-#include <memory>
-#include <vector>
-
-#include "common/status.h"
-#include "exec/operator/exchange_sink_buffer.h"
-#include "exec/operator/exchange_sink_operator.h"
-#include "exec/sink/writer/vhive_utils.h"
-#include "runtime/runtime_state.h"
-#include "testutil/mock/mock_runtime_state.h"
-
-namespace doris {

Review Comment:
   Removing the opening `namespace doris {` makes the helper declarations above 
`ExchangeSinkTest` leave the namespace and also turns the existing `}; // 
namespace doris` after `transmit_blockv2()` into an unmatched close. This is a 
syntax error even before the missing includes are considered.



-- 
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]

Reply via email to