Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Upgrade Datafusion 40 #771

Merged
merged 42 commits into from
Jul 31, 2024
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
Show all changes
42 commits
Select commit Hold shift + click to select a range
8d3a215
chore: update datafusion deps
Michael-J-Ward Jul 16, 2024
0179c6f
feat: impl ExecutionPlan::static_name() for DatasetExec
Michael-J-Ward Jul 17, 2024
61f5ea3
feat: update first_value and last_value wrappers.
Michael-J-Ward Jul 17, 2024
86d1ad0
migrate count to UDAF
Michael-J-Ward Jul 24, 2024
f4a0828
migrate approx_percentile_cont, approx_distinct, and approx_median to…
Michael-J-Ward Jul 24, 2024
3a277a8
migrate avg to UDAF
Michael-J-Ward Jul 24, 2024
98498e9
migrage corr to UDAF
Michael-J-Ward Jul 24, 2024
f1717a2
migrate grouping to UDAF
Michael-J-Ward Jul 24, 2024
c790454
add alias `mean` for UDAF `avg`
Michael-J-Ward Jul 24, 2024
d0018ea
migrate stddev to UDAF
Michael-J-Ward Jul 24, 2024
d0ae202
remove rust alias for stddev
Michael-J-Ward Jul 24, 2024
40d9d3e
migrage var_pop to UDAF
Michael-J-Ward Jul 24, 2024
86d9d9b
migrate regr_* functions to UDAF
Michael-J-Ward Jul 24, 2024
8881e2a
migrate bitwise functions to UDAF
Michael-J-Ward Jul 24, 2024
c754d82
add missing variants for ScalarValue with todo
Michael-J-Ward Jul 24, 2024
e3a4a7a
fix typo in approx_percentile_cont
Michael-J-Ward Jul 24, 2024
9b2f63b
add distinct arg to count
Michael-J-Ward Jul 24, 2024
6539c0c
comment out failing test
Michael-J-Ward Jul 24, 2024
11e601f
update tests to expect lowercase `sum` in query plans
Michael-J-Ward Jul 24, 2024
77b24e3
update ScalarType data_type map
Michael-J-Ward Jul 24, 2024
3b54873
add docs dependency pickleshare
Michael-J-Ward Jul 24, 2024
1d1cd84
re-implement count_star
Michael-J-Ward Jul 24, 2024
e6775a3
lint: ruff python lint
Michael-J-Ward Jul 25, 2024
8ca3469
lint: rust cargo fmt
Michael-J-Ward Jul 25, 2024
a521310
include name of window function in error for find_window_fn
Michael-J-Ward Jul 25, 2024
06e2704
refactor `find_window_fn` for debug clarity
Michael-J-Ward Jul 25, 2024
df2cbad
search default aggregate functions by both name and aliases
Michael-J-Ward Jul 25, 2024
a8a6c9d
fix markdown in find_window_fn docs
Michael-J-Ward Jul 25, 2024
a38aa99
parameterize test_window_functions
Michael-J-Ward Jul 25, 2024
b6eee28
add test ids to test_simple_select tests marked xfail
Michael-J-Ward Jul 25, 2024
39893fc
update find_window_fn to search built-ins first
Michael-J-Ward Jul 25, 2024
22f372b
improve first_call and last_call use of the builder API
Michael-J-Ward Jul 25, 2024
7211ba6
remove trailing todos
Michael-J-Ward Jul 25, 2024
a75861d
fix examples/substrait.py
Michael-J-Ward Jul 25, 2024
0c57e59
chore: remove explicit aliases from functions.rs
Michael-J-Ward Jul 26, 2024
eb905fb
remove `array_fn!` aliases
Michael-J-Ward Jul 26, 2024
00779b7
remove alias rules for `expr_fn_vec!`
Michael-J-Ward Jul 26, 2024
dc2db41
remove alias rules from `expr_fn!` macro
Michael-J-Ward Jul 26, 2024
65ea065
remove unnecessary pyo3 var-arg signatures in functions.rs
Michael-J-Ward Jul 29, 2024
2009741
remove pyo3 signatures that provided defaults for first_value and las…
Michael-J-Ward Jul 29, 2024
e17ba64
parametrize test_string_functions
Michael-J-Ward Jul 29, 2024
d293398
test regr_ function wrappers
Michael-J-Ward Jul 29, 2024
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
69 changes: 36 additions & 33 deletions Cargo.lock

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

16 changes: 8 additions & 8 deletions Cargo.toml
Original file line number Diff line number Diff line change
Expand Up @@ -17,7 +17,7 @@

[package]
name = "datafusion-python"
version = "39.0.0"
version = "40.0.0"
homepage = "https://datafusion.apache.org/python"
repository = "https://github.com/apache/datafusion-python"
authors = ["Apache DataFusion <[email protected]>"]
Expand All @@ -38,13 +38,13 @@ tokio = { version = "1.35", features = ["macros", "rt", "rt-multi-thread", "sync
rand = "0.8"
pyo3 = { version = "0.21", features = ["extension-module", "abi3", "abi3-py38"] }
arrow = { version = "52", feature = ["pyarrow"] }
datafusion = { version = "39.0.0", features = ["pyarrow", "avro", "unicode_expressions"] }
datafusion-common = { version = "39.0.0", features = ["pyarrow"] }
datafusion-expr = "39.0.0"
datafusion-functions-array = "39.0.0"
datafusion-optimizer = "39.0.0"
datafusion-sql = "39.0.0"
datafusion-substrait = { version = "39.0.0", optional = true }
datafusion = { version = "40.0.0", features = ["pyarrow", "avro", "unicode_expressions"] }
datafusion-common = { version = "40.0.0", features = ["pyarrow"] }
datafusion-expr = "40.0.0"
datafusion-functions-array = "40.0.0"
datafusion-optimizer = "40.0.0"
datafusion-sql = "40.0.0"
datafusion-substrait = { version = "40.0.0", optional = true }
prost = "0.12"
prost-types = "0.12"
uuid = { version = "1.9", features = ["v4"] }
Expand Down
3 changes: 2 additions & 1 deletion docs/requirements.txt
Original file line number Diff line number Diff line change
Expand Up @@ -21,4 +21,5 @@ myst-parser
maturin
jinja2
ipython
pandas
pandas
pickleshare
2 changes: 1 addition & 1 deletion examples/substrait.py
Original file line number Diff line number Diff line change
Expand Up @@ -46,4 +46,4 @@

# Back to Substrait Plan just for demonstration purposes
# type(substrait_plan) -> <class 'datafusion.substrait.plan'>
substrait_plan = ss.Producer.to_substrait_plan(df_logical_plan)
substrait_plan = ss.Producer.to_substrait_plan(df_logical_plan, ctx)
Loading
Loading