datafusion icon indicating copy to clipboard operation
datafusion copied to clipboard

Allow flag to alias all projected substrait expressions with a UUID

Open xanderbailey opened this issue 1 month ago • 0 comments

Which issue does this PR close?

  • Closes #.

Rationale for this change

As previously discussed in https://github.com/apache/datafusion/pull/17299. This continues to be a bit of a thorn for expressions that are the same on the left and the right side of the of a join leading to ambiguous references.

Downside here is that it makes the plan less readable which is why I thought it would be better if this was a config that users can opt into to make things more stable. Having said that in my experience the plans created via substrait are super hard to read anyway. If you have a deeply nested CAST statement for example then the name that appears in the plan is unintelligible anyway.

What changes are included in this PR?

Adds substrait_alias_all_expressions config which applies a UUID alias to all expressions during substrait conversion.

Are these changes tested?

Yes

Are there any user-facing changes?

xanderbailey avatar Dec 05 '25 18:12 xanderbailey