You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
{{ message }}
Repository navigation
[datafusion-spark] Example of using Spark compatible function library #15915
The idea is that using the functions in this crate you can get a SessionContext that executes sql using Spark semantics. However, there is no user facing documentation that shows how to do this
Describe the solution you'd like
Add an example somewhere showing how to configure and use the spark functions in a SessionContext. I can help with this
Add a new page in the "Library User Guide" called "Spark Compatible Functions"
Add a preamble explaining what the datafusion-spark crate is (contains a list of spark compatible functions)
Add examples
For example we should show how to run sql using a "spark compatible" frame:
let ctx = SessionContext::new();
datafusion_spark::register_all(&ctx)?;// TODO run an example SQL query here that uses a function from // the datafusion spark crate
ctx.sql("select ... ")// also add an example for DataFrame API
In order to run the example code as part of CI, you will have to add an entry such as this:
Activity
alamb commentedon May 2, 2025
I think this is a good first issue as there is a clear request of what is desired and examples to follow
Adez017 commentedon May 2, 2025
hi @alamb . it sounds interesting , i would love to work in this .
Adez017 commentedon May 2, 2025
take
alamb commentedon May 2, 2025
Thanks @Adez017
alamb commentedon Jun 12, 2025
I made a PR for this issue -- it was a bit trickier than I expected