From 1c558388a7618c5fae805036595e3248e29dc2ca Mon Sep 17 00:00:00 2001 From: guojidan <1948535941@qq.com> Date: Tue, 2 Apr 2024 02:32:43 +0000 Subject: [PATCH] fix docs Signed-off-by: guojidan <1948535941@qq.com> --- datafusion-examples/examples/advanced_udwf.rs | 2 +- datafusion/expr/src/udwf.rs | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/datafusion-examples/examples/advanced_udwf.rs b/datafusion-examples/examples/advanced_udwf.rs index 8d2591ff649fd..8dea060ac1825 100644 --- a/datafusion-examples/examples/advanced_udwf.rs +++ b/datafusion-examples/examples/advanced_udwf.rs @@ -171,7 +171,7 @@ async fn create_context() -> Result { // declare a table in memory. In spark API, this corresponds to createDataFrame(...). println!("pwd: {}", std::env::current_dir().unwrap().display()); - let csv_path = "datafusion/core/tests/data/cars.csv".to_string(); + let csv_path = "../../datafusion/core/tests/data/cars.csv".to_string(); let read_options = CsvReadOptions::default().has_header(true); ctx.register_csv("cars", &csv_path, read_options).await?; diff --git a/datafusion/expr/src/udwf.rs b/datafusion/expr/src/udwf.rs index 799eb19716d2b..63631cfd2f3c8 100644 --- a/datafusion/expr/src/udwf.rs +++ b/datafusion/expr/src/udwf.rs @@ -302,7 +302,7 @@ pub trait WindowUDFImpl: Debug + Send + Sync { /// optimizations manually for specific UDFs. /// /// Example: - /// [`advanced_udwf.rs`]: https://github.com/apache/arrow-datafusion/blob/main/datafusion-examples/examples/advanced_udwf.rs + /// [`advanced_udwf.rs`]: /// /// # Returns /// [`ExprSimplifyResult`] indicating the result of the simplification NOTE