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

prune superfluous inferred object types from native query configuration #118

Conversation

hallettj
Copy link
Collaborator

No description provided.

return (Cow::Borrowed(name), 0);
};
(Cow::Owned(prefix.to_string()), count)
}
Copy link
Collaborator

Choose a reason for hiding this comment

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

So a suffix only gets added if there is more then one? Or does this not really matter because the prune fns below remove these?

Copy link
Collaborator Author

Choose a reason for hiding this comment

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

Yes, the suffix is only added if the count is 1 or higher. And then the prune step attempts to remove the suffix if that wouldn't cause a collision, but otherwise uses the lowest-number suffix that doesn't cause a collision after pruning.

@hallettj hallettj merged commit 55c4fb7 into main Nov 18, 2024
1 check passed
@hallettj hallettj deleted the jessehallett/eng-1098-prune-unnecessary-object-types-when-generating-native-query branch November 18, 2024 02:04
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.

2 participants