diff --git a/.github/workflows/arrow_flight.yml b/.github/workflows/arrow_flight.yml index fb3e9f577d5a..a0e9f38b02d1 100644 --- a/.github/workflows/arrow_flight.yml +++ b/.github/workflows/arrow_flight.yml @@ -56,6 +56,9 @@ jobs: - name: Test --all-features run: | cargo test -p arrow-flight --all-features + - name: Test --examples + run: | + cargo test -p arrow-flight --features=flight-sql-experimental --examples - name: Verify workspace clean run: git diff --exit-code diff --git a/arrow-flight/examples/flight_sql_server.rs b/arrow-flight/examples/flight_sql_server.rs index 0d06aa664ec8..ae015001f0a1 100644 --- a/arrow-flight/examples/flight_sql_server.rs +++ b/arrow-flight/examples/flight_sql_server.rs @@ -482,8 +482,14 @@ impl ProstMessageExt for FetchResults { mod tests { use super::*; use futures::TryStreamExt; + use std::fs; + use tempfile::NamedTempFile; + use tokio::net::{UnixListener, UnixStream}; + use tokio_stream::wrappers::UnixListenerStream; + use tonic::transport::Endpoint; use arrow::util::pretty::pretty_format_batches; + use arrow_flight::sql::client::FlightSqlServiceClient; use arrow_flight::utils::flight_data_to_batches; use tower::service_fn;