-
Notifications
You must be signed in to change notification settings - Fork 427
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
feat: Add row access policy to the SDK #2363
Conversation
Integration tests failure for 828955294e2152b7ee80eb9ad3d9196318749d75 |
Integration tests failure for 828955294e2152b7ee80eb9ad3d9196318749d75 |
Name: "h", | ||
Type: DataTypeVARCHAR, | ||
}} | ||
assertOptsValidAndSQLEquals(t, opts, "CREATE ROW ACCESS POLICY %s AS (n VARCHAR, h VARCHAR) RETURNS BOOLEAN -> true", id.FullyQualifiedName()) |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
is it possible to create a row access policy with no arguments?
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Not according to the docs.
There is unit test for no args:
t.Run("validation: [opts.args] should be set", func(t *testing.T) {
opts := defaultOpts()
opts.args = []CreateRowAccessPolicyArgs{}
assertOptsInvalidJoinedErrors(t, opts, errNotSet("CreateRowAccessPolicyOptions", "args"))
})
so we do not allow it.
Integration tests failure for 37b08f0b1bf2a696fc8bd81e354128e044e0c562 |
Add row access policy to the SDK
References