Skip to content

Conversation

@kumarUjjawal
Copy link
Contributor

Which issue does this PR close?

Rationale for this change

What changes are included in this PR?

Are these changes tested?

After switching those internal_err! guards to the new assertion macros, one test now fails. expr_rewriter::order_by::test::rewrite_sort_cols_by_agg_alias expects the
rewritten sort expression to stay as a fully qualified column parsed from col("min(t.c2)"), but the new code returns an unqualified Column { relation: None, name: "min(t.c2)" }, so the test’s equality check breaks. I would appreciate any feedback for moving forward with this.

image

Are there any user-facing changes?

@github-actions github-actions bot added the logical-expr Logical plan and expressions label Nov 14, 2025
@Jefffrey
Copy link
Contributor

I expect these refactors to change no behaviour in regards to the tests (would prefer not to change the tests)

@kumarUjjawal
Copy link
Contributor Author

I expect these refactors to change no behaviour in regards to the tests (would prefer not to change the tests)

Any suggestion for what I am doing wrong?

@Jefffrey
Copy link
Contributor

I expect these refactors to change no behaviour in regards to the tests (would prefer not to change the tests)

Any suggestion for what I am doing wrong?

I would say revert the changes that are causing the tests to fail

@2010YOUY01
Copy link
Contributor

From the CI log I only see sqllogcitest failures, and it's just error message change due to the new macro

You can apply auto fix with https://datafusion.apache.org/contributor-guide/testing.html#sqllogictests-tests

@github-actions github-actions bot added the sqllogictest SQL Logic Tests (.slt) label Nov 15, 2025
@kumarUjjawal
Copy link
Contributor Author

Closing this in favor of #18731

@Jefffrey
Copy link
Contributor

Jefffrey commented Nov 15, 2025

Closing this in favor of #18731

Please keep in mind we prefer keeping existing PRs instead of closing and opening new ones; it causes us to lose context and makes it harder for us to keep track (especially as for this tracking issue we have a lot of PRs to keep track of in a short span of time)

@kumarUjjawal
Copy link
Contributor Author

Closing this in favor of #18731

Please keep in mind we prefer keeping existing PRs instead of closing and opening new ones; it causes us to lose context and makes it harder for us to keep track (especially as for this tracking issue we have a lot of PRs to keep track of in a short span of time)

I understand but i made a mess in this one when I ran the cargo test --test sqllogictests -- --complete command for the test and it changed several files. The CI was still failing and it was becoming harder for me to track what broke it. If you could help track it down, it would be great help. Sorry for the inconvenience.

@Jefffrey
Copy link
Contributor

Closing this in favor of #18731

Please keep in mind we prefer keeping existing PRs instead of closing and opening new ones; it causes us to lose context and makes it harder for us to keep track (especially as for this tracking issue we have a lot of PRs to keep track of in a short span of time)

I understand but i made a mess in this one when I ran the cargo test --test sqllogictests -- --complete command for the test and it changed several files. The CI was still failing and it was becoming harder for me to track what broke it. If you could help track it down, it would be great help. Sorry for the inconvenience.

As I mentioned before, I don't expect test changes to be necessary with these refactors. Please be conservative in the refactors being done and run tests as you do the refactor to ensure we don't break them.

@kumarUjjawal
Copy link
Contributor Author

run tests as you do the refactor to ensure we don't break them.

Thanks! I will try this.

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

Labels

logical-expr Logical plan and expressions sqllogictest SQL Logic Tests (.slt)

Projects

None yet

Development

Successfully merging this pull request may close these issues.

3 participants