Skip to content

Show row count in exception-vs-ResultSet comparator diffs#1399

Merged
sreekanth-db merged 1 commit intocomparator-v2from
comparator-v2-describe-result
Apr 9, 2026
Merged

Show row count in exception-vs-ResultSet comparator diffs#1399
sreekanth-db merged 1 commit intocomparator-v2from
comparator-v2-describe-result

Conversation

@sreekanth-db
Copy link
Copy Markdown
Collaborator

Summary

  • When one side throws an exception and the other returns a ResultSet, the comparator diff now shows whether the ResultSet is empty or has data
  • Before: class DatabricksSQLException vs class DatabricksResultSet
  • After: class DatabricksSQLException vs class DatabricksResultSet (empty) or (5 rows)

Test plan

  • Verified with getTables catalog="" cases — all show (empty) as expected
  • No impact on existing comparator behavior for ResultSet-vs-ResultSet or exception-vs-exception cases

NO_CHANGELOG=true

When one side throws an exception and the other returns a ResultSet,
the diff now shows whether the ResultSet is empty or has data
(e.g., "DatabricksResultSet (empty)" or "DatabricksResultSet (5 rows)").

Co-authored-by: Isaac
Signed-off-by: Sreekanth Vadigi <[email protected]>
@sreekanth-db sreekanth-db merged commit 7a899e4 into comparator-v2 Apr 9, 2026
1 check failed
@sreekanth-db sreekanth-db deleted the comparator-v2-describe-result branch April 9, 2026 20:00
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.

1 participant