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

[Rust] [DataFusion] Add ability to downcast ExecutionPlan to specific operator

    XMLWordPrintableJSON

Details

    Description

      Sometimes it is necessary to have operator-specific logic in a query optimizer, so we need the ability to get an Any reference to an ExecutionPlan so we can downcast it.

      We do something very similar in PrimitiveArray already with an as_any method but the difference there is we can call get_type first to know exactly what type to cast to and we don't have anything like that in ExecutionPlan, but we could at least speculatively  try casting to specific operators.

      Attachments

        Issue Links

          Activity

            People

              andygrove Andy Grove
              andygrove Andy Grove
              Votes:
              0 Vote for this issue
              Watchers:
              2 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 - 40m
                  40m