Skip to content

Conversation

@ajantha-bhat
Copy link
Contributor

Yesterday this PR got merged (apache/iceberg#6801) which introduces one more output value. Hence, the strict check fails.

This PR is to unblock query-engine-integration-tests

Part of fixing #6114

// re-written files count is 2 and the added files count is 1
assertThat(result).hasSize(1).containsExactly(row(2, 1));
assertThat(result.get(0)[0]).isEqualTo(2);
assertThat(result.get(0)[1]).isEqualTo(1);
Copy link
Contributor Author

Choose a reason for hiding this comment

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

I did try .extracting() but it became too messy/complex as result.get(0) can have a bigger array in the latest iceberg.

Copy link
Member

@dimas-b dimas-b Feb 16, 2023

Choose a reason for hiding this comment

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

nit: .first() might help. Also, would just dropping hasSize(1) and using .contains(row(2, 1)) work?

@codecov
Copy link

codecov bot commented Feb 16, 2023

Codecov Report

Base: 77.38% // Head: 77.38% // No change to project coverage 👍

Coverage data is based on head (69b3d58) compared to base (31357d3).
Patch has no changes to coverable lines.

Additional details and impacted files
@@            Coverage Diff            @@
##               main    #6117   +/-   ##
=========================================
  Coverage     77.38%   77.38%           
  Complexity     3765     3765           
=========================================
  Files           565      565           
  Lines         17260    17260           
  Branches       1723     1723           
=========================================
  Hits          13357    13357           
  Misses         3278     3278           
  Partials        625      625           
Flag Coverage Δ
java 76.63% <ø> (ø)
javascript 82.91% <ø> (ø)
python 83.96% <ø> (ø)

Flags with carried forward coverage won't be shown. Click here to find out more.

Help us with your feedback. Take ten seconds to tell us how you rate us. Have a feature suggestion? Share it here.

☔ View full report at Codecov.
📢 Do you have feedback about the report comment? Let us know in this issue.

// re-written files count is 2 and the added files count is 1
assertThat(result).hasSize(1).containsExactly(row(2, 1));
assertThat(result.get(0)[0]).isEqualTo(2);
assertThat(result.get(0)[1]).isEqualTo(1);
Copy link
Member

@dimas-b dimas-b Feb 16, 2023

Choose a reason for hiding this comment

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

nit: .first() might help. Also, would just dropping hasSize(1) and using .contains(row(2, 1)) work?

@snazy snazy merged commit 6a10feb into projectnessie:main Feb 16, 2023
@ajantha-bhat ajantha-bhat deleted the build branch March 13, 2023 11:18
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.

3 participants