Uploaded image for project: 'Apache Arrow'
  1. Apache Arrow
  2. ARROW-9835

[Rust] [DataFusion] Remove FunctionMeta

    XMLWordPrintableJSON

Details

    Description

      Currently, our code works as follows:

      1. Declare a UDF via udf::ScalarFunction
      2. Register the UDF
      3. call scalar_function("name", vec![...], type) to use it during planning.

      However, during planning, we:

      1. Get the ScalarFunction by name
      2. convert it to FunctionMetadata
      3. get the ScalarFunction associated with FunctionMetadata's name

      I.e. FunctionMetadata does not seem to be needed.

      Goal: remove FunctionMetadata and just pass udf::ScalarFunction directly from the registry to the physical plan.

      Attachments

        Issue Links

          Activity

            People

              jorgecarleitao Jorge Leitão
              jorgecarleitao Jorge Leitão
              Votes:
              0 Vote for this issue
              Watchers:
              3 Start watching this issue

              Dates

                Created:
                Updated:
                Resolved:

                Time Tracking

                  Estimated:
                  Original Estimate - Not Specified
                  Not Specified
                  Remaining:
                  Remaining Estimate - 0h
                  0h
                  Logged:
                  Time Spent - 50m
                  50m