datafusion icon indicating copy to clipboard operation
datafusion copied to clipboard

feat: support `FixedSizeList` Type Coercion

Open Weijun-H opened this issue 1 year ago • 1 comments

Which issue does this PR close?

Follow #8902

Rationale for this change

For future maintenance, extend Array which specialized Signature for ArrayEmpty and similar functions

What changes are included in this PR?

  • The signatures of array functions with one parameter to use Signature::array
  • Support allow_null_coercion to determine if the signature accepts DataType::NULL to do type coercion.

Are these changes tested?

Are there any user-facing changes?

Weijun-H avatar Feb 02 '24 08:02 Weijun-H

It seems to support FixedSizeList, we need all the array functions to change the signature and go through coerced_fixed_size_list_to_list once 🤔. I'm not sure it is a good idea, but I did not come out with a better one though

jayzhan211 avatar Feb 15 '24 08:02 jayzhan211

@Weijun-H, thanks again!

jayzhan211 avatar Feb 26 '24 13:02 jayzhan211