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

feat: Upgrade to Datafusion 17 #601

Merged
merged 9 commits into from
Feb 8, 2023
Merged

feat: Upgrade to Datafusion 17 #601

merged 9 commits into from
Feb 8, 2023

Conversation

chunshao90
Copy link
Contributor

@chunshao90 chunshao90 commented Jan 31, 2023

Which issue does this PR close?

Closes #

Rationale for this change

Upgrade to datafusion 17 and arrow 31.

What changes are included in this PR?

Jobs left:

Changelog of those two packages:

https://github.com/apache/arrow-datafusion/blob/master/datafusion/CHANGELOG.md#1700-2023-01-27
https://github.com/apache/arrow-rs/blob/master/CHANGELOG-old.md#3100-2023-01-13

Are there any user-facing changes?

No.

How does this change test

@codecov-commenter
Copy link

codecov-commenter commented Feb 7, 2023

Codecov Report

Merging #601 (5d3804f) into main (13c4a0b) will decrease coverage by 0.11%.
The diff coverage is 54.25%.

❗ Current head 5d3804f differs from pull request most recent head d940b72. Consider uploading reports for the commit d940b72 to get more accurate results

@@            Coverage Diff             @@
##             main     #601      +/-   ##
==========================================
- Coverage   66.01%   65.91%   -0.11%     
==========================================
  Files         285      285              
  Lines       44358    44482     +124     
==========================================
+ Hits        29285    29322      +37     
- Misses      15073    15160      +87     
Impacted Files Coverage Δ
analytic_engine/src/table/mod.rs 80.41% <ø> (ø)
components/arrow_ext/src/display.rs 0.00% <0.00%> (ø)
df_operator/src/aggregate.rs 0.00% <0.00%> (ø)
df_operator/src/udfs/time_bucket.rs 0.00% <0.00%> (ø)
interpreters/src/show_create.rs 85.22% <ø> (-0.09%) ⬇️
...ry_engine/src/df_execution_extension/prom_align.rs 0.00% <0.00%> (ø)
query_engine/src/df_planner_extension/mod.rs 93.33% <ø> (ø)
...uery_engine/src/df_planner_extension/prom_align.rs 0.00% <ø> (ø)
.../df_planner_extension/table_scan_by_primary_key.rs 23.52% <0.00%> (+7.05%) ⬆️
server/src/limiter.rs 95.08% <ø> (ø)
... and 37 more

Help us with your feedback. Take ten seconds to tell us how you rate us. Have a feature suggestion? Share it here.

@chunshao90 chunshao90 marked this pull request as ready for review February 7, 2023 06:44
@@ -282,6 +284,10 @@ impl<'a, P: MetaProvider> ContextProvider for ContextProviderAdapter<'a, P> {
) -> Option<common_types::schema::DataType> {
None
}

fn options(&self) -> &ConfigOptions {
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Implement this

let deadline = match state.config.config_options().get(CERESDB_REQUEST_TIMEOUT) {
Some(ScalarValue::UInt64(Some(n))) => Some(Instant::now() + Duration::from_millis(n)),
_ => None,
let ceresdb_options = state.config_options().extensions.get::<CeresdbOptions>();
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

This couldn't be None in our case, I think we can add an assert here.

assert!(options.is_some());

Copy link
Contributor

@jiacai2050 jiacai2050 left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

LGTM

@jiacai2050 jiacai2050 merged commit 47e4518 into apache:main Feb 8, 2023
chunshao90 added a commit to chunshao90/ceresdb that referenced this pull request May 15, 2023
* feat: upgrade to datafusion 17

* fix integration tests

* fix integration test

* make CI happy

* refactor code

* refactor by CR

* chore: remove uesless file
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

None yet

3 participants