Skip to content

Preserve field name in ScalarValue::List - #2893

Merged
alamb merged 16 commits into
apache:masterfrom
comphead:scalar_list_element_name
Jul 18, 2022
Merged

alamb merged 16 commits into
apache:masterfrom
comphead:scalar_list_element_name

Conversation

@comphead

Copy link
Copy Markdown
Contributor

Which issue does this PR close?

Closes #2450 .

Rationale for this change

What changes are included in this PR?

Preserve list element name

Are there any user-facing changes?

@github-actions github-actions Bot added core Core DataFusion crate physical-expr Changes to the physical-expr crates sql SQL Planner labels Jul 13, 2022
@comphead

Copy link
Copy Markdown
Contributor Author

@alamb you mentioned in #2840 the encoding/decoding issue still exists, please give more details, I'll try to fix it in this PR

@codecov-commenter

codecov-commenter commented Jul 13, 2022 •

Copy link
Copy Markdown

Codecov Report

Merging #2893 (6f76971) into master (60c57cc) will increase coverage by 0.06%.
The diff coverage is 97.05%.

❗ Current head 6f76971 differs from pull request most recent head e59b4f0. Consider uploading reports for the commit e59b4f0 to get more accurate results

@@            Coverage Diff             @@
##           master    #2893      +/-   ##
==========================================
+ Coverage   85.34%   85.40%   +0.06%     
==========================================
  Files         273      273              
  Lines       49472    49415      -57     
==========================================
- Hits        42220    42205      -15     
+ Misses       7252     7210      -42     
Impacted Files Coverage Δ
datafusion/sql/src/planner.rs 81.31% <50.00%> (ø)
datafusion/proto/src/to_proto.rs 53.40% <77.77%> (-3.07%) ⬇️
.../physical-expr/src/aggregate/array_agg_distinct.rs 80.18% <93.75%> (ø)
datafusion/common/src/scalar.rs 84.81% <100.00%> (+0.06%) ⬆️
...atafusion/physical-expr/src/aggregate/array_agg.rs 95.87% <100.00%> (-0.05%) ⬇️
...sion/physical-expr/src/aggregate/count_distinct.rs 95.03% <100.00%> (+0.01%) ⬆️
...fusion/physical-expr/src/aggregate/sum_distinct.rs 92.72% <100.00%> (+0.06%) ⬆️
datafusion/physical-expr/src/aggregate/tdigest.rs 91.30% <100.00%> (+0.05%) ⬆️
datafusion/proto/src/from_proto.rs 35.84% <100.00%> (+1.20%) ⬆️
datafusion/proto/src/lib.rs 93.47% <100.00%> (+0.15%) ⬆️
... and 5 more

Continue to review full report at Codecov.

Legend - Click here to learn more
Δ = absolute <relative> (impact), ø = not affected, ? = missing data
Powered by Codecov. Last update 60c57cc...e59b4f0. Read the comment docs.

@comphead
comphead marked this pull request as ready for review July 13, 2022 20:22
@comphead
comphead marked this pull request as draft July 13, 2022 20:44
@comphead

Copy link
Copy Markdown
Contributor Author

@alamb I have reenabled commented test, and build is ok. Do you think we can proceed?

@comphead

Copy link
Copy Markdown
Contributor Author

@alamb please check this PR again

@alamb alamb left a comment

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

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

I think this PR looks good to go now -- we just need to rebase it against master. If that is having problems @comphead I will be happy to do so.

Thank you

comphead added 2 commits July 16, 2022 11:44
# Conflicts:
#	datafusion/core/src/scalar.rs
@comphead

Copy link
Copy Markdown
Contributor Author

I think this PR looks good to go now -- we just need to rebase it against master. If that is having problems @comphead I will be happy to do so.

Thank you

Hi @alamb I have merged it, please have a look again

@comphead
comphead requested a review from alamb July 17, 2022 19:22
@alamb alamb changed the title Scalar list preserve element name Preserve field name in ScalarValue::List Jul 18, 2022
@alamb

alamb commented Jul 18, 2022

Copy link
Copy Markdown
Contributor

Thanks @comphead -- I took the liberty of merging up from master again (to resolve yet another conflict I introduced in #2875). I plan to merge this PR once the tests pass

Comment thread datafusion/common/src/scalar.rs Resolved
Comment thread datafusion/proto/src/to_proto.rs Resolved
Comment thread datafusion/proto/src/to_proto.rs Resolved
@alamb

alamb commented Jul 18, 2022

Copy link
Copy Markdown
Contributor

@alamb you mentioned in #2840 the encoding/decoding issue still exists, please give more details, I'll try to fix it in this PR

For the record, we discussed on slack and found the appropriate test coverage was here: https://github.com/apache/arrow-datafusion/blob/3f4aaabc74796fe8c538981c259d79da789b96ae/datafusion/proto/src/lib.rs#L345

@alamb
alamb merged commit 90e5fd0 into apache:master Jul 18, 2022
@ursabot

ursabot commented Jul 18, 2022

Copy link
Copy Markdown

Benchmark runs are scheduled for baseline = 305e265 and contender = 90e5fd0. 90e5fd0 is a master commit associated with this PR. Results will be available as each benchmark for each run completes.
Conbench compare runs links:
[Skipped ⚠️ Benchmarking of arrow-datafusion-commits is not supported on ec2-t3-xlarge-us-east-2] ec2-t3-xlarge-us-east-2
[Skipped ⚠️ Benchmarking of arrow-datafusion-commits is not supported on test-mac-arm] test-mac-arm
[Skipped ⚠️ Benchmarking of arrow-datafusion-commits is not supported on ursa-i9-9960x] ursa-i9-9960x
[Skipped ⚠️ Benchmarking of arrow-datafusion-commits is not supported on ursa-thinkcentre-m75q] ursa-thinkcentre-m75q
Buildkite builds:
Supported benchmarks:
ec2-t3-xlarge-us-east-2: Supported benchmark langs: Python, R. Runs only benchmarks with cloud = True
test-mac-arm: Supported benchmark langs: C++, Python, R
ursa-i9-9960x: Supported benchmark langs: Python, R, JavaScript
ursa-thinkcentre-m75q: Supported benchmark langs: C++, Java

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

core Core DataFusion crate physical-expr Changes to the physical-expr crates sql SQL Planner

Projects

None yet

Development

Successfully merging this pull request may close these issues.

Preserve Element Name in ScalarValue::List

4 participants