Skip to content

Conversation

@Nishi46
Copy link
Contributor

@Nishi46 Nishi46 commented Jul 3, 2024

Part of Closes #11230

  • Changed println statements to assert_eq in the relevant files.

@findepi
Copy link
Member

findepi commented Jul 3, 2024

please run cargo fmt to fix CI errors

Copy link
Contributor

@alamb alamb left a comment

Choose a reason for hiding this comment

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

Thank you @Nishi46 and @findepi for the review -- I kicked off the CI for this job plan to merge it if it passes

fyi @comphead

Copy link
Contributor

@comphead comphead left a comment

Choose a reason for hiding this comment

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

lgtm thanks @Nishi46 I think we need to fix 1 example to make it happen.
Hope examples output is determenistic.

"Optimized Logical Plan:\n\n{}\n",
logical_plan.display_indent()
assert_eq!(
logical_plan.display_indent().to_string(),
Copy link
Contributor

Choose a reason for hiding this comment

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

this actual plan is quite a bit more complicated than shown here

Copy link
Contributor

@alamb alamb left a comment

Choose a reason for hiding this comment

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

Thank you for this contribution @Nishi46

The examples in rewrite_expr.rs are being split up (see #11085) so in order to help this PR along, I pushed some commits to the relevant tests.

Once this PR is merged I think subsequent PRs will be easer to get in because CI will run automatically for you

If you want to keep helping out here (and I hope that you do!) perhaps you can make multiple PRs, one for each example? I think that will also help get the code in sooner rather than later

@alamb
Copy link
Contributor

alamb commented Jul 5, 2024

Thanks again @Nishi46 and @findepi

@alamb alamb merged commit df999d6 into apache:main Jul 5, 2024
@Nishi46 Nishi46 deleted the nishi_branch branch July 5, 2024 19:54
comphead pushed a commit to comphead/arrow-datafusion that referenced this pull request Jul 8, 2024
…che#11237)

* Replace println! with assert! if possible in DataFusion examples

* Replace println! with assert! if possible in DataFusion examples

* Update rewrite_expr.rs

* port changes to other examples

---------

Co-authored-by: Andrew Lamb <andrew@nerdnetworks.org>
findepi pushed a commit to findepi/datafusion that referenced this pull request Jul 16, 2024
…che#11237)

* Replace println! with assert! if possible in DataFusion examples

* Replace println! with assert! if possible in DataFusion examples

* Update rewrite_expr.rs

* port changes to other examples

---------

Co-authored-by: Andrew Lamb <andrew@nerdnetworks.org>
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

Replace println! with assert! if possible in DataFusion examples

4 participants