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

Go: fix hasQualifiedName and models-as-data for built-in functions #16458

Merged
merged 5 commits into from May 9, 2024

Conversation

owen-mc
Copy link
Contributor

@owen-mc owen-mc commented May 8, 2024

  • Fixed a bug that stopped built-in functions from being referenced using the predicate hasQualifiedName because technically they do not belong to any package. Now you can use the empty string as the package, e.g. f.hasQualifiedName("", "len").
  • Fixed a bug that stopped data flow models for built-in functions from having any effect because the package "" was not parsed correctly.

I've pulled this commit out of #16413 so that it can be reviewed in isolation. I don't think it needs a test because it is tested by that PR, which gets our only MaD models for built-in functions working properly.

I don't think there is any need for performance testing, but I can do it if someone wants it.

@owen-mc owen-mc requested a review from a team as a code owner May 8, 2024 14:40
This is so that when we don't change the test results every time we add
a summary model for a built-in function.
@owen-mc owen-mc merged commit 526204d into github:main May 9, 2024
14 checks passed
@owen-mc owen-mc deleted the go/fix-mad-for-builtin-functions branch May 9, 2024 14:06
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

Successfully merging this pull request may close these issues.

None yet

2 participants