diff --git a/cpp/src/arrow/compute/exec/expression.h b/cpp/src/arrow/compute/exec/expression.h index 3d3ce99c257..98221422ee2 100644 --- a/cpp/src/arrow/compute/exec/expression.h +++ b/cpp/src/arrow/compute/exec/expression.h @@ -27,8 +27,6 @@ #include #include "arrow/compute/type_fwd.h" -#include "arrow/dataset/type_fwd.h" -#include "arrow/dataset/visibility.h" #include "arrow/datum.h" #include "arrow/type_fwd.h" #include "arrow/util/variant.h" diff --git a/cpp/src/arrow/compute/type_fwd.h b/cpp/src/arrow/compute/type_fwd.h index 9888e610aa7..4f4393486ff 100644 --- a/cpp/src/arrow/compute/type_fwd.h +++ b/cpp/src/arrow/compute/type_fwd.h @@ -39,5 +39,7 @@ struct VectorKernel; struct KernelState; +class Expression; + } // namespace compute } // namespace arrow diff --git a/cpp/src/arrow/dataset/type_fwd.h b/cpp/src/arrow/dataset/type_fwd.h index 0a4148c49e1..67a999456be 100644 --- a/cpp/src/arrow/dataset/type_fwd.h +++ b/cpp/src/arrow/dataset/type_fwd.h @@ -22,18 +22,12 @@ #include #include +#include "arrow/compute/type_fwd.h" // IWYU pragma: export #include "arrow/dataset/visibility.h" #include "arrow/filesystem/type_fwd.h" // IWYU pragma: export #include "arrow/type_fwd.h" // IWYU pragma: export namespace arrow { -namespace compute { - -class ExecContext; -class Expression; - -} // namespace compute - namespace dataset { class Dataset;