Skip to content

Commit 61a535b

Browse files
authored
feat(geodatafusion): Create Python library exposing geodatafusion FFI objects (#1319)
### Change list There are two ways to register the provided UDFs: either one-by-one by calling `SessionContext.register_udf(udf(geodatafusion.native.AsText))` or by registering all functions via `geodatafusion.register_all(ctx)`. - Make Python wrappers for all currently-implemented functions in the Rust side - Add type hints - Add helper functions for registering all UDFs - Create macros for simpler registering of Python structs
1 parent 6bb9b0e commit 61a535b

40 files changed

Lines changed: 3801 additions & 66 deletions

python/Cargo.lock

Lines changed: 1256 additions & 63 deletions
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

python/Cargo.toml

Lines changed: 4 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,5 @@
11
[workspace]
2-
members = ["geoarrow-compute", "geoarrow-core", "geoarrow-io"]
2+
members = ["geoarrow-compute", "geoarrow-core", "geoarrow-io", "geodatafusion"]
33
resolver = "2"
44

55
[workspace.package]
@@ -18,12 +18,15 @@ arrow = "56"
1818
arrow-array = "56"
1919
arrow-buffer = "56"
2020
arrow-schema = "56"
21+
datafusion = { git = "https://github.com/apache/datafusion", rev = "fa1f8c192dd531d3f2fca61885eafa3e9002f0dd" }
22+
datafusion-ffi = { git = "https://github.com/apache/datafusion", rev = "fa1f8c192dd531d3f2fca61885eafa3e9002f0dd" }
2123
flatgeobuf = { version = "5.0", default-features = false }
2224
geo-traits = "0.3"
2325
geoarrow-array = { path = "../rust/geoarrow-array" }
2426
geoarrow-cast = { path = "../rust/geoarrow-cast" }
2527
geoarrow-flatgeobuf = { path = "../rust/geoarrow-flatgeobuf" }
2628
geoarrow-schema = { path = "../rust/geoarrow-schema" }
29+
geodatafusion = { path = "../rust/geodatafusion" }
2730
geoparquet = { path = "../rust/geoparquet" }
2831
geozero = "0.14"
2932
http-range-client = { version = "0.9.0", default-features = false }

0 commit comments

Comments
 (0)