Skip to content

Add regression coverage for quoted dotted column aliases#23155

Open
kosiew wants to merge 2 commits into
apache:mainfrom
kosiew:pr-22917-followup-01
Open

Add regression coverage for quoted dotted column aliases#23155
kosiew wants to merge 2 commits into
apache:mainfrom
kosiew:pr-22917-followup-01

Conversation

@kosiew

@kosiew kosiew commented Jun 24, 2026

Copy link
Copy Markdown
Contributor

Which issue does this PR close?

Follow up to #22917, I overlooked these:

  • Add SLT regression coverage for quoted dotted names / column-list aliasing.
  • remove redundant .clone() after columns() since it already returns Vec.

What changes are included in this PR?

This PR adds SLT regression coverage for quoted dotted column names used with table column-list aliasing, including qualified and unqualified references.

It also removes a redundant .clone() call after plan.schema().columns().

Are these changes tested?

Yes. Tests are added in:

datafusion/sqllogictest/test_files/alias.slt

Are there any user-facing changes?

No user-facing changes.

LLM-generated code disclosure

This PR includes LLM-generated code and comments. All LLM-generated content has been manually reviewed.

@github-actions github-actions Bot added sql SQL Planner sqllogictest SQL Logic Tests (.slt) labels Jun 24, 2026
@kosiew

kosiew commented Jun 24, 2026

Copy link
Copy Markdown
Contributor Author

@nuno-faria
PTAL

…table column-list aliasing

fix(planner): remove redundant clone after plan.schema().columns()
@kosiew kosiew force-pushed the pr-22917-followup-01 branch from 8a5d696 to 729231a Compare June 24, 2026 09:59
@kosiew kosiew marked this pull request as ready for review June 24, 2026 10:27

@nuno-faria nuno-faria left a comment

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Thanks @kosiew, LGTM.

Comment on lines +108 to +109
# Test quoted dotted column names with subquery column-list aliasing
# (https://github.com/apache/datafusion/issues/22916)

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

I think we should combine these new tests with the ones above, since some parts are repeated.

Copy link
Copy Markdown
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

@kosiew

kosiew commented Jun 25, 2026

Copy link
Copy Markdown
Contributor Author

@nuno-faria
Thanks for the feedback.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

sql SQL Planner sqllogictest SQL Logic Tests (.slt)

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants