pwrliang commented on code in PR #465:
URL: https://github.com/apache/sedona-db/pull/465#discussion_r2696455650


##########
rust/sedona-spatial-join-gpu/tests/gpu_functional_test.rs:
##########
@@ -0,0 +1,588 @@
+// 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.
+
+//! GPU Functional Tests
+//!
+//! These tests require actual GPU hardware and CUDA toolkit.
+//! They verify the correctness and performance of actual GPU computation.
+//!
+//! **Prerequisites:**
+//! - CUDA-capable GPU (compute capability 6.0+)
+//! - CUDA Toolkit 11.0+ installed
+//! - Linux or Windows OS
+//! - Build with --features gpu
+//!
+//! **Running:**
+//! ```bash
+//! # Run all GPU functional tests
+//! cargo test --package sedona-spatial-join-gpu --features gpu 
gpu_functional_tests
+//!
+//! # Run ignored tests (requires GPU)
+//! cargo test --package sedona-spatial-join-gpu --features gpu -- --ignored
+//! ```
+
+use arrow::datatypes::{DataType, Field, Schema};
+use arrow::ipc::reader::StreamReader;
+use arrow_array::{Int32Array, RecordBatch};
+use datafusion::execution::context::TaskContext;
+use datafusion::physical_plan::ExecutionPlan;
+use futures::StreamExt;
+use sedona_spatial_join_gpu::{
+    GeometryColumnInfo, GpuSpatialJoinConfig, GpuSpatialJoinExec, 
GpuSpatialPredicate,
+    SpatialPredicate,
+};
+use std::fs::File;
+use std::sync::Arc;
+
+/// Helper to create test geometry data
+#[allow(dead_code)]
+fn create_point_wkb(x: f64, y: f64) -> Vec<u8> {
+    let mut wkb = vec![0x01, 0x01, 0x00, 0x00, 0x00]; // Little endian point 
type
+    wkb.extend_from_slice(&x.to_le_bytes());
+    wkb.extend_from_slice(&y.to_le_bytes());
+    wkb
+}

Review Comment:
   This function is not used and will be removed



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

Reply via email to