Skip to content

Conversation

KKould
Copy link
Member

@KKould KKould commented Aug 21, 2025

I hereby agree to the terms of the CLA available at: https://docs.databend.com/dev/policies/cla/

Summary

This scalar UDF feature encapsulates SQL as a scalar function, allowing it to be used in a similar way to a built-in function.

CREATE OR REPLACE FUNCTION bool_not(b BOOLEAN) RETURNS BOOLEAN AS $$ NOT b $$;

SELECT bool_not(1 = 0);

Scalar UDF has almost the same functionality as the existing Lambda UDF, but the syntax of Scalar UDF is aligned with UDTF #18511.

Tests

  • Unit Test
  • Logic Test
  • Benchmark Test
  • No Test - Explain why

Type of change

  • Bug Fix (non-breaking change which fixes an issue)
  • New Feature (non-breaking change which adds functionality)
  • Breaking Change (fix or feature that could cause existing functionality not to work as expected)
  • Documentation Update
  • Refactoring
  • Performance Improvement
  • Other (please describe):

This change is Reviewable

@github-actions github-actions bot added the pr-feature this PR introduces a new feature to the codebase label Aug 21, 2025
@KKould KKould requested a review from sundy-li August 22, 2025 04:17
@KKould KKould self-assigned this Aug 22, 2025
@KKould KKould marked this pull request as ready for review August 22, 2025 04:17
@KKould KKould requested a review from drmingdrmer as a code owner August 22, 2025 04:17
Copy link
Member

@drmingdrmer drmingdrmer left a comment

Choose a reason for hiding this comment

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

@drmingdrmer reviewed 12 of 18 files at r1, all commit messages.
Reviewable status: 12 of 18 files reviewed, all discussions resolved (waiting on @sundy-li)

@sundy-li sundy-li merged commit 5e8802f into databendlabs:main Aug 22, 2025
90 of 91 checks passed
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
pr-feature this PR introduces a new feature to the codebase
Projects
None yet
Development

Successfully merging this pull request may close these issues.

3 participants