Skip to content

Test dataframe_subquery fails #8015

@smallzhongfeng

Description

@smallzhongfeng

Describe the bug

When running datafreme's subquery-related test class, an exception will be thrown. The reason for the error is that no optimization rules are matched.

Error: Context("Optimizer rule 'common_sub_expression_eliminate' failed", SchemaError(FieldNotFound { field: Column { relation: Some(Bare { table: "t1" }), name: "c1" }, valid_fields: [Column { relation: Some(Bare { table: "t2" }), name: "c1" }, Column { relation: Some(Bare { table: "t2" }), name: "c2" }, Column { relation: Some(Bare { table: "t2" }), name: "c3" }, Column { relation: Some(Bare { table: "t2" }), name: "c4" }, Column { relation: Some(Bare { table: "t2" }), name: "c5" }, Column { relation: Some(Bare { table: "t2" }), name: "c6" }, Column { relation: Some(Bare { table: "t2" }), name: "c7" }, Column { relation: Some(Bare { table: "t2" }), name: "c8" }, Column { relation: Some(Bare { table: "t2" }), name: "c9" }, Column { relation: Some(Bare { table: "t2" }), name: "c10" }, Column { relation: Some(Bare { table: "t2" }), name: "c11" }, Column { relation: Some(Bare { table: "t2" }), name: "c12" }, Column { relation: Some(Bare { table: "t2" }), name: "c13" }] }))

To Reproduce

cargo run --example dataframe_subquery

Expected behavior

No response

Additional context

No response

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