Skip to content

[substrait] [sqllogictest] Optimizer rule 'optimize_projections' failed #16287

@gabotechs

Description

@gabotechs

Describe the bug

~10 sqllogictest cases are failing in Substrait round-trip mode because of the following error:

query failed: DataFusion error: Optimizer rule 'optimize_projections' failed
caused by Schema error: No field named left."col2:1". Valid fields are left.col2.

To Reproduce

cargo test --test sqllogictests -- --substrait-round-trip group_by.slt:870

Expected behavior

The sqllogictest passes in Substrait round-trip mode

Additional context

This is part of a broader initiative to improve the reliability of Substrait-to-DataFusion logical plan conversions.

Metadata

Metadata

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