This is an automated email from the ASF dual-hosted git repository.

chengchengjin pushed a commit to branch main
in repository https://gitbox.apache.org/repos/asf/incubator-gluten.git


The following commit(s) were added to refs/heads/main by this push:
     new 220c79b841 [MINOR][VL] Fix unused variable when GPU was not enabled 
(#11067)
220c79b841 is described below

commit 220c79b8415b365dc1e9730fc91d8fd6bda62896
Author: Zhen Wang <[email protected]>
AuthorDate: Tue Nov 11 21:18:53 2025 +0800

    [MINOR][VL] Fix unused variable when GPU was not enabled (#11067)
---
 cpp/velox/compute/WholeStageResultIterator.cc | 3 ++-
 1 file changed, 2 insertions(+), 1 deletion(-)

diff --git a/cpp/velox/compute/WholeStageResultIterator.cc 
b/cpp/velox/compute/WholeStageResultIterator.cc
index 1766654f3d..cdb115578a 100644
--- a/cpp/velox/compute/WholeStageResultIterator.cc
+++ b/cpp/velox/compute/WholeStageResultIterator.cc
@@ -135,9 +135,10 @@ WholeStageResultIterator::WholeStageResultIterator(
     const auto& format = scanInfo->format;
     const auto& partitionColumns = scanInfo->partitionColumns;
     const auto& metadataColumns = scanInfo->metadataColumns;
+#ifdef GLUTEN_ENABLE_GPU
     // Under the pre-condition that all the split infos has same partition 
column and format.
     const auto canUseCudfConnector = scanInfo->canUseCudfConnector();
-
+#endif
     std::vector<std::shared_ptr<velox::connector::ConnectorSplit>> 
connectorSplits;
     connectorSplits.reserve(paths.size());
     for (int idx = 0; idx < paths.size(); idx++) {


---------------------------------------------------------------------
To unsubscribe, e-mail: [email protected]
For additional commands, e-mail: [email protected]

Reply via email to