Skip to content

Adjust strict docs - #9033

Open
connortsui20 wants to merge 1 commit into
developfrom
ct/strict-docs-adjust
Open

Adjust strict docs#9033
connortsui20 wants to merge 1 commit into
developfrom
ct/strict-docs-adjust

Conversation

@connortsui20

Copy link
Copy Markdown
Member

Some of the semantics of strictness for the list scalar fns were unclear.

Signed-off-by: Connor Tsui <connor.tsui20@gmail.com>
@connortsui20 connortsui20 added the changelog/docs A docs change label Jul 28, 2026
@connortsui20
connortsui20 enabled auto-merge (squash) July 28, 2026 14:30
/// 1. Output validity is precomputable as the `AND` of the input validities, so
/// `valid(f(a1, .., ak)) = valid(a1) ∧ .. ∧ valid(ak)`.
/// 1. Any null input slot nulls the output slot, so the output validity is bounded above by the
/// `AND` of the input validities: `valid(f(a1, .., ak)) valid(a1) ∧ .. ∧ valid(ak)`.

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

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

is it a bound or equal?

Copy link
Copy Markdown
Member Author

Choose a reason for hiding this comment

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

bounded, thats why there is a subset there.

formally, g is allowed to return a null even if its inputs are not null. This is subtly different from how f MUST return null if any inputs ARE null.

Comment on lines 201 to 205
@@ -203,8 +205,8 @@ pub trait ScalarFnVTable: 'static + Sized + Clone + Send + Sync {
/// f(v1, .., vk) = g(v1, .., vk) otherwise

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

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

this not contradicts the below

Copy link
Copy Markdown
Member Author

Choose a reason for hiding this comment

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

why does it contradict the stuff below?

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

changelog/docs A docs change

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants