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

chore: Add UnboundColumn to carry datatype for unbound reference #518

Merged
merged 2 commits into from
Jun 6, 2024

Conversation

viirya
Copy link
Member

@viirya viirya commented Jun 5, 2024

Which issue does this PR close?

Closes #511.

Rationale for this change

What changes are included in this PR?

How are these changes tested?

@viirya
Copy link
Member Author

viirya commented Jun 5, 2024

This is proposed to fix the issue in #403 when upgrading to latest DataFusion.

@viirya
Copy link
Member Author

viirya commented Jun 5, 2024

cc @sunchao @andygrove @huaxingao

Ok(self.datatype.clone())
}

/// Decide whehter this expression is nullable, given the schema of the input
Copy link
Contributor

Choose a reason for hiding this comment

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

nit: whehter typo

Copy link
Member Author

Choose a reason for hiding this comment

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

Oops

Copy link
Member Author

Choose a reason for hiding this comment

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

I copied it from DataFusion. 😂

@codecov-commenter
Copy link

Codecov Report

All modified and coverable lines are covered by tests ✅

Project coverage is 34.07%. Comparing base (7ba5693) to head (3c5240c).
Report is 20 commits behind head on main.

Additional details and impacted files
@@             Coverage Diff              @@
##               main     #518      +/-   ##
============================================
+ Coverage     34.05%   34.07%   +0.02%     
+ Complexity      859      809      -50     
============================================
  Files           116      105      -11     
  Lines         38679    38509     -170     
  Branches       8567     8552      -15     
============================================
- Hits          13173    13123      -50     
+ Misses        22745    22643     -102     
+ Partials       2761     2743      -18     

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

Copy link
Contributor

@advancedxy advancedxy left a comment

Choose a reason for hiding this comment

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

LGTM.

Do we need to contribute the UnboundColumn back to DataFusion?

@viirya
Copy link
Member Author

viirya commented Jun 5, 2024

LGTM.

Do we need to contribute the UnboundColumn back to DataFusion?

DataFusion doesn't need it.

@viirya viirya force-pushed the add_unbound_expr branch from 3c5240c to 3d8ccec Compare June 6, 2024 02:05
@viirya viirya merged commit 6143e7a into apache:main Jun 6, 2024
43 checks passed
@viirya
Copy link
Member Author

viirya commented Jun 6, 2024

Merged. Thanks @huaxingao @advancedxy

@viirya viirya deleted the add_unbound_expr branch June 6, 2024 03:53
himadripal pushed a commit to himadripal/datafusion-comet that referenced this pull request Sep 7, 2024
…che#518)

* chore: Add UnboundColumn to carry datatype for unbound reference

* Update core/src/execution/datafusion/expressions/unbound.rs
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.

Incorrect return type on aggregate functions implemented by AggregateUDF when upgrading to latest DataFusion
4 participants