Skip to content

Commit 242c231

Browse files
committed
fix example
1 parent e35ca21 commit 242c231

File tree

1 file changed

+4
-1
lines changed

1 file changed

+4
-1
lines changed

datafusion-flight-sql-server/examples/flight-sql.rs

Lines changed: 4 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -19,8 +19,11 @@ use tonic::transport::Endpoint;
1919
async fn main() -> Result<()> {
2020
let dsn: String = "0.0.0.0:50051".to_string();
2121
let remote_ctx = SessionContext::new();
22+
23+
let csv_path = format!("{}/examples/test.csv", env!("CARGO_MANIFEST_DIR"));
24+
2225
remote_ctx
23-
.register_csv("test", "./examples/test.csv", CsvReadOptions::new())
26+
.register_csv("test", &csv_path, CsvReadOptions::new())
2427
.await?;
2528

2629
// Remote context

0 commit comments

Comments
 (0)