diff --git a/src/Interpreters/InterpreterSelectQuery.cpp b/src/Interpreters/InterpreterSelectQuery.cpp
index 600901f6895..b41f0c94df6 100644
--- a/src/Interpreters/InterpreterSelectQuery.cpp
+++ b/src/Interpreters/InterpreterSelectQuery.cpp
@@ -1547,6 +1547,8 @@ void InterpreterSelectQuery::executeImpl(QueryPlan & query_plan, std::optional
getCurrentDataStream().header, join_clause.key_names_right);
diff --git a/src/Processors/PingPongProcessor.cpp b/src/Processors/PingPongProcessor.cpp
index 5de17bf9f16..7305c6d44c0 100644
--- a/src/Processors/PingPongProcessor.cpp
+++ b/src/Processors/PingPongProcessor.cpp
@@ -1,6 +1,5 @@
#include
-#include
namespace DB
{
diff --git a/tests/queries/0_stateless/02382_join_and_filtering_set.reference b/tests/queries/0_stateless/02382_join_and_filtering_set.reference
index abc52af9a01..f81cf99bba7 100644
--- a/tests/queries/0_stateless/02382_join_and_filtering_set.reference
+++ b/tests/queries/0_stateless/02382_join_and_filtering_set.reference
@@ -12,4 +12,3 @@ a a
a a
1
1
-a a
diff --git a/tests/queries/0_stateless/02382_join_and_filtering_set.sql b/tests/queries/0_stateless/02382_join_and_filtering_set.sql
index c0ba3476cba..b9dd44721dd 100644
--- a/tests/queries/0_stateless/02382_join_and_filtering_set.sql
+++ b/tests/queries/0_stateless/02382_join_and_filtering_set.sql
@@ -41,9 +41,3 @@ SELECT count() == 0 FROM (EXPLAIN PIPELINE
;
--- WITH CUBE is not supported in allow_experimental_analyzer, so the result number of rows is different
-SELECT * FROM ( SELECT 'a' AS key ) AS t1
-INNER JOIN ( SELECT 'a' AS key GROUP BY ignore(1), ignore(2) WITH CUBE ) AS t2
-ON t1.key = t2.key
-SETTINGS allow_experimental_analyzer = 1
-;