From 242c231bd26e756ca2d83437b3f6ee6bfd6141f7 Mon Sep 17 00:00:00 2001 From: ethever <25705974+ethever@users.noreply.github.com> Date: Fri, 31 Oct 2025 06:45:38 +0800 Subject: [PATCH] fix example --- datafusion-flight-sql-server/examples/flight-sql.rs | 5 ++++- 1 file changed, 4 insertions(+), 1 deletion(-) diff --git a/datafusion-flight-sql-server/examples/flight-sql.rs b/datafusion-flight-sql-server/examples/flight-sql.rs index 021227a..5d70432 100644 --- a/datafusion-flight-sql-server/examples/flight-sql.rs +++ b/datafusion-flight-sql-server/examples/flight-sql.rs @@ -19,8 +19,11 @@ use tonic::transport::Endpoint; async fn main() -> Result<()> { let dsn: String = "0.0.0.0:50051".to_string(); let remote_ctx = SessionContext::new(); + + let csv_path = format!("{}/examples/test.csv", env!("CARGO_MANIFEST_DIR")); + remote_ctx - .register_csv("test", "./examples/test.csv", CsvReadOptions::new()) + .register_csv("test", &csv_path, CsvReadOptions::new()) .await?; // Remote context