Skip to content

Information schema should use return_field_from_args #19870

@Jefffrey

Description

@Jefffrey

// only handle the function which implemented [`ScalarUDFImpl::return_type`] method
let return_type = udf
.return_type(&arg_types)
.map(|t| remove_native_type_prefix(&NativeType::from(t)))
.ok();

// only handle the function which implemented [`ScalarUDFImpl::return_type`] method
let return_type = udaf
.return_type(&arg_types)
.ok()
.map(|t| remove_native_type_prefix(&NativeType::from(t)));

These should be using return_field_from_args as some UDFs/UDAFs/UDWFs implement that instead of return_type, especially since the default implementation of return_field_from_args already delegates to return_type

Metadata

Metadata

Assignees

Labels

No labels
No labels

Type

No type
No fields configured for issues without a type.

Projects

No projects

Milestone

No milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions