Skip to content

Comments

Minor: update tests in limit_pushdown.rs to insta#20066

Merged
alamb merged 1 commit intoapache:mainfrom
alamb:alamb/insta_tests
Jan 30, 2026
Merged

Minor: update tests in limit_pushdown.rs to insta#20066
alamb merged 1 commit intoapache:mainfrom
alamb:alamb/insta_tests

Conversation

@alamb
Copy link
Contributor

@alamb alamb commented Jan 29, 2026

Which issue does this PR close?

Rationale for this change

While reviewing #20048 and verifying test coverage, it was hard for me to see the test differences (b/c the formatting was not great)

What changes are included in this PR?

Port the tests to use insta rather than assert_eq

Are these changes tested?

Yes, only tests

Are there any user-facing changes?

@alamb alamb added the development-process Related to development process of DataFusion label Jan 29, 2026
@github-actions github-actions bot added optimizer Optimizer rules core Core DataFusion crate sqllogictest SQL Logic Tests (.slt) and removed development-process Related to development process of DataFusion labels Jan 29, 2026
];
assert_eq!(initial, expected_initial);
let initial = format_plan(&global_limit);
insta::assert_snapshot!(
Copy link
Contributor Author

Choose a reason for hiding this comment

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

The point is to use this alternate format which is easier to update and to diff

@alamb alamb force-pushed the alamb/insta_tests branch from 9abc7d9 to 6ba9ab7 Compare January 30, 2026 16:23
@alamb
Copy link
Contributor Author

alamb commented Jan 30, 2026

I merged rebased after #20048 was merged

@alamb alamb marked this pull request as ready for review January 30, 2026 16:24
@alamb alamb added this pull request to the merge queue Jan 30, 2026
@alamb
Copy link
Contributor Author

alamb commented Jan 30, 2026

Thank you @avantgardnerio and @adriangb

Merged via the queue into apache:main with commit 4a63659 Jan 30, 2026
28 of 29 checks passed
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

core Core DataFusion crate optimizer Optimizer rules sqllogictest SQL Logic Tests (.slt)

Projects

None yet

Development

Successfully merging this pull request may close these issues.

3 participants