forked from apache/arrow
-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
ARROW-4628: [Rust] [DataFusion] Implement type coercion query optimiz…
…er rule This PR refactors the existing type coercion logic, to remove it from the SQL query planner and into an optimizer rule and also makes it more complete, with improved unit tests. It also converts more functions to return Result instead of using unwrap and removes some dead code and removes some duplicated code by introducing a new `utils` file in `optimizer` module. Author: Andy Grove <[email protected]> Closes apache#3939 from andygrove/type_coercion and squashes the following commits: d94d8fd <Andy Grove> use correct error type f8b25e9 <Andy Grove> manual merge with latest from master 30ef339 <Andy Grove> rebase 9844792 <Andy Grove> Roll back some changes to reduce scope of PR 1a76ca3 <Andy Grove> Implement type coercion optimizer rule
- Loading branch information
Showing
8 changed files
with
321 additions
and
74 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -19,4 +19,5 @@ | |
pub mod optimizer; | ||
pub mod projection_push_down; | ||
pub mod type_coercion; | ||
pub mod utils; |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Oops, something went wrong.