Skip to content

feat: Add isDefaultNullBehavior API#16239

Closed
mbasmanova wants to merge 1 commit intofacebookincubator:mainfrom
mbasmanova:export-D92271292
Closed

feat: Add isDefaultNullBehavior API#16239
mbasmanova wants to merge 1 commit intofacebookincubator:mainfrom
mbasmanova:export-D92271292

Conversation

@mbasmanova
Copy link
Contributor

Summary:
Add isDefaultNullBehavior function to the Velox function registry API. This function allows callers to check if a registered function has default null behavior (null in any input produces null output).

This API is needed by the Axiom optimizer to determine whether filter predicates can be pushed through outer joins.

Differential Revision: D92271292

@netlify
Copy link

netlify bot commented Feb 4, 2026

Deploy Preview for meta-velox canceled.

Name Link
🔨 Latest commit b334fa3
🔍 Latest deploy log https://app.netlify.com/projects/meta-velox/deploys/6983469334f2cf00089ffbac

@meta-cla meta-cla bot added the CLA Signed This label is managed by the Facebook bot. Authors need to sign the CLA before a PR can be reviewed. label Feb 4, 2026
@meta-codesync
Copy link

meta-codesync bot commented Feb 4, 2026

@mbasmanova has exported this pull request. If you are a Meta employee, you can view the originating Diff in D92271292.

mbasmanova added a commit to mbasmanova/velox that referenced this pull request Feb 4, 2026
Summary:

Add `isDefaultNullBehavior` function to the Velox function registry API. This function allows callers to check if a registered function has default null behavior (null in any input produces null output).

This API is needed by the Axiom optimizer to determine whether filter predicates can be pushed through outer joins.

Differential Revision: D92271292
Summary:

Add `isDefaultNullBehavior` function to the Velox function registry API. This function allows callers to check if a registered function has default null behavior (null in any input produces null output).

This API is needed by the Axiom optimizer to determine whether filter predicates can be pushed through outer joins.

Differential Revision: D92271292

std::optional<bool> isDefaultNullBehavior(const std::string& functionName) {
const auto simpleFunctions =
exec::simpleFunctions().getFunctionSignaturesAndMetadata(functionName);
Copy link
Contributor

Choose a reason for hiding this comment

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

Let's address minor nits

Copy link
Contributor

@xiaoxmeng xiaoxmeng left a comment

Choose a reason for hiding this comment

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

@mbasmanova thanks!

@meta-codesync
Copy link

meta-codesync bot commented Feb 4, 2026

This pull request has been merged in a6fa501.

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

Labels

CLA Signed This label is managed by the Facebook bot. Authors need to sign the CLA before a PR can be reviewed. fb-exported Merged meta-exported

Projects

None yet

Development

Successfully merging this pull request may close these issues.

4 participants