Skip to content

The test in_list_types_struct_literal fails when setting skip_failed_rules as false #5217

@HaoYang670

Description

@HaoYang670

Describe the bug
A clear and concise description of what the bug is.

---- physical_plan::planner::tests::in_list_types_struct_literal stdout ----
thread 'physical_plan::planner::tests::in_list_types_struct_literal' panicked at 'Can not find expected in actual.

Expected:
The data type inlist should be same, the value type is Boolean, one of list expr type is Struct([Field { name: "foo", data_type: Boolean, nullable: false, dict_id: 0, dict_is_ordered: false, metadata: {} }])

Actual:
type_coercion
caused by
Internal error: Optimizer rule 'type_coercion' failed due to unexpected error: Error during planning: Can not find compatible types to compare Boolean with [Struct([Field { name: "foo", data_type: Boolean, nullable: false, dict_id: 0, dict_is_ordered: false, metadata: {} }]), Utf8]. This was likely caused by a bug in DataFusion's code and we would welcome that you file an bug report in our issue tracker', datafusion/core/src/physical_plan/planner.rs:2194:9

To Reproduce
Steps to reproduce the behavior:

  1. set skip_failed_rules to false
  2. run cargo test --all

Expected behavior
A clear and concise description of what you expected to happen.
The test should pass.

Additional context
Add any other context about the problem here.

Metadata

Metadata

Assignees

No one assigned

    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