Skip to content

Fix the test failures related to the logical optimizer. #4685

@HaoYang670

Description

@HaoYang670

Describe the bug
There are several test failures when setting the config skip_failing_rules to false.

Some tests failures are caused by earlier type checking, which are expected, others are caused by some bugs in the optimizer, and we should fix them.

To Reproduce
Steps to reproduce the behavior:

  1. set the skip_failing_rules to false
  2. run cargo test --all

Expected behavior
A clear and concise description of what you expected to happen.

Additional context
Add any other context about the problem here.
https://github.com/apache/arrow-datafusion/blob/ac2e5d15e5452e83c835d793a95335e87bf35569/datafusion/optimizer/src/optimizer.rs#L325-L340

Metadata

Metadata

Assignees

Labels

bugSomething isn't working

Type

No type

Projects

No projects

Milestone

No milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions