Skip to content

chore: Enable additional CreateArray tests#928

Merged
andygrove merged 2 commits intoapache:mainfrom
Kimahriman:addl-create-array-tests
Sep 27, 2024
Merged

chore: Enable additional CreateArray tests#928
andygrove merged 2 commits intoapache:mainfrom
Kimahriman:addl-create-array-tests

Conversation

@Kimahriman
Copy link
Copy Markdown
Contributor

Which issue does this PR close?

Follow up to #792

Rationale for this change

Enable additional CreateArray tests now that we've bumped the DataFusion version in #909

What changes are included in this PR?

Enable additional tests, and make on change to the equality check for type coercion to fix one of the new tests.

How are these changes tested?

New tests enabled

.zip(input_expr_types.into_iter().zip(coerced_input_types))
.map(|(expr, (from_type, to_type))| {
if !from_type.equals_datatype(&to_type) {
if from_type != to_type {
Copy link
Copy Markdown
Contributor Author

@Kimahriman Kimahriman Sep 9, 2024

Choose a reason for hiding this comment

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

MutableArrayData checks for exact equality across types, including field names, so need to be stricter about deciding when casts are needed.

@codecov-commenter
Copy link
Copy Markdown

codecov-commenter commented Sep 9, 2024

Codecov Report

✅ All modified and coverable lines are covered by tests.
✅ Project coverage is 34.04%. Comparing base (033fe6f) to head (bd02660).
⚠️ Report is 1341 commits behind head on main.

Additional details and impacted files
@@             Coverage Diff              @@
##               main     #928      +/-   ##
============================================
+ Coverage     34.03%   34.04%   +0.01%     
+ Complexity      883      882       -1     
============================================
  Files           113      112       -1     
  Lines         43170    43290     +120     
  Branches       9516     9553      +37     
============================================
+ Hits          14693    14739      +46     
- Misses        25471    25537      +66     
- Partials       3006     3014       +8     

☔ View full report in Codecov by Sentry.
📢 Have feedback on the report? Share it here.

🚀 New features to boost your workflow:
  • ❄️ Test Analytics: Detect flaky tests, report on failures, and find test suite problems.

Copy link
Copy Markdown
Member

@andygrove andygrove left a comment

Choose a reason for hiding this comment

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

Thanks @Kimahriman

@andygrove andygrove merged commit 0ee7df8 into apache:main Sep 27, 2024
coderfender pushed a commit to coderfender/datafusion-comet that referenced this pull request Dec 13, 2025
## Which issue does this PR close?

<!--
We generally require a GitHub issue to be filed for all bug fixes and
enhancements and this helps us generate change logs for our releases.
You can link an issue to this PR using the GitHub syntax. For example
`Closes apache#123` indicates that this PR will close issue apache#123.
-->

N/A

## Rationale for this change

<!--
Why are you proposing this change? If this is already explained clearly
in the issue then this section is not needed.
Explaining clearly why changes are proposed helps reviewers understand
your changes and offer better suggestions for fixes.
-->

Apply OSS 0.3.0 changes.

## What changes are included in this PR?

<!--
There is no need to duplicate the description in the issue here but it
is sometimes worth providing a summary of the individual changes in this
PR.
-->

```
84cccf7 docs: Add notes for IntelliJ code size limits for code inspections. (apache#985)
dcc4a8a fix: The spilled_bytes metric of CometSortExec should be size instead of time (apache#984)
f64553b chore: fix compatibility guide (apache#978)
0ee7df8 chore: Enable additional CreateArray tests (apache#928)
a690e9d perf: Remove one redundant CopyExec for SMJ (apache#962)
a8156b5 chore: update rem expression guide (apache#976)
317a534 fix: Use the number of rows from underlying arrays instead of logical row count from RecordBatch (apache#972)
22561c4 doc: add documentation interlinks (apache#975)
b4de8e0 chore: Update benchmarks results based on 0.3.0-rc1 (apache#969)
94093f3 chore: fix publish-to-maven script (apache#966)
f31f6cc Generate changelog for 0.3.0 release (apache#964)
5663fc2 fix: div and rem by negative zero (apache#960)
50517f6 perf: Optimize decimal precision check in decimal aggregates (sum and avg) (apache#952)
5b3f7bc fix: CometScanExec on Spark 3.5.2 (apache#915)
8410c71 chore: clarify tarball installation (apache#959)
459b2b0 fix: window function range offset should be long instead of int (apache#733)
```


## How are these changes tested?

<!--
We typically require tests for all PRs in order to:
1. Prevent the code from being accidentally broken by subsequent changes
2. Serve as another way to document the expected behavior of the code

If tests are not included in your PR, please explain why (for example,
are they covered by existing tests)?
-->
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.

3 participants