Skip to content

Conversation

@jayzhan211
Copy link

@jayzhan211 jayzhan211 commented Dec 22, 2024

…rgument functions

- Updated the `Simple0ArgsScalarUDF` to utilize `Signature::nullary` instead of `Signature::exact`.
- Modified tests to reflect the change in signature handling for zero-argument functions.
- Enhanced error messages in type coercion functions to clarify the requirement for nullary signatures.
- Cleaned up redundant checks and improved code readability in the type coercion logic.

This change improves consistency in how zero-argument functions are defined and validated across the codebase.
Signed-off-by: Jay Zhan <jayzhan211@gmail.com>
use super::*;

#[test]
fn supports_zero_argument_tests() {
Copy link
Author

Choose a reason for hiding this comment

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

covered in core/tests/udf.

@alamb alamb changed the title Converge zero args to Nullary Require all zero argument UDFs use Signature::Nullary, improve error messages Dec 22, 2024
Copy link
Owner

@alamb alamb left a comment

Choose a reason for hiding this comment

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

Thank you @jayzhan211 -- makes sense to me. I will merge this PR and update the description

@alamb alamb merged commit 4e99fcf into alamb:alamb/signature_nullary Dec 22, 2024
13 of 16 checks passed
alamb added a commit that referenced this pull request Apr 7, 2025
* Improve doc comments

* Apply suggestions from code review

---------

Co-authored-by: Adrian Garcia Badaracco <1755071+adriangb@users.noreply.github.com>
alamb added a commit that referenced this pull request Apr 17, 2025
… them (apache#15566)

* ExecutionPlan: add APIs for filter pushdown & optimizer rule to apply them

* wip

* fix tests

* fix

* fix

* fix doc

* fix doc

* Improve doc comments of `filter-pushdown-apis` (#22)

* Improve doc comments

* Apply suggestions from code review

---------

Co-authored-by: Adrian Garcia Badaracco <1755071+adriangb@users.noreply.github.com>

* Apply suggestions from code review

Co-authored-by: Andrew Lamb <andrew@nerdnetworks.org>

* simplify according to pr feedback

* Add missing file

* Add tests

* pipe config in

* docstrings

* Update datafusion/physical-plan/src/filter_pushdown.rs

* fix

* fix

* fmt

* fix doc

* add example usage of config

* fix test

* convert exec API and optimizer rule

* re-add docs

* dbg

* dbg 2

* avoid clones

* part 3

* fix lint

* tests pass

* Update filter.rs

* update projection tests

* update slt files

* fix

* fix references

* improve impls and update tests

* apply stop logic

* update slt's

* update other tests

* minor

* rename modules to match logical optimizer, tweak docs

---------

Co-authored-by: Andrew Lamb <andrew@nerdnetworks.org>
Co-authored-by: berkaysynnada <berkay.sahin@synnada.ai>
Co-authored-by: Berkay Şahin <124376117+berkaysynnada@users.noreply.github.com>
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.

2 participants