Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Use .equals() to compare schemas #711

Open
wants to merge 1 commit into
base: master
Choose a base branch
from

Conversation

cchandurkar
Copy link

@cchandurkar cchandurkar commented Sep 26, 2023

If SMT clones the schema of the object for any reason, it does not have the same "hash" as original schema but structurally it's the same. Using !.equals() instead of != will allow SMTs to properly clone the schemas.

Copy link
Collaborator

@sfc-gh-japatel sfc-gh-japatel left a comment

Choose a reason for hiding this comment

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

lgtm!

Have you previously signed CLA? If not, mind sending an email address where Snwoflake can send a CLA document to push PRs on public repos? Thanks

@cchandurkar
Copy link
Author

lgtm!

Have you previously signed CLA? If not, mind sending an email address where Snwoflake can send a CLA document to push PRs on public repos? Thanks

I have not, you can send it on: [email protected]

@sfc-gh-xhuang
Copy link
Collaborator

Thanks for signing the CLA. This is good to merge. @sfc-gh-japatel @sfc-gh-rcheng

@cchandurkar
Copy link
Author

cchandurkar commented Nov 6, 2023

@sfc-gh-japatel any thoughts on this? I've seen this issue popping up a multiple times where a schema closed in SMT doesn't have the same hash as original schema and this equality check fails even when the schema is structurally identical. Using .equals() fixes it.

@sfc-gh-xhuang
Copy link
Collaborator

@sfc-gh-mbobowski and team to also help review any implications.

@sfc-gh-achyzy
Copy link
Contributor

@cchandurkar Can you provide an update for this issue? A lot of checks are failing.

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.

5 participants