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

[Rust] [DataFusion] Implement type coercion query optimizer rule

    XMLWordPrintableJSON

Details

    Description

      Now that we have a query optimizer, we should re-implement type coercion as an optimizer rule that rewrites expressions with explicit casts where required, so that at runtime we are only comparing like types.

      For example, the expression float_column < int_column would be rewritten as float_column < CAST(int_column AS float).

      DataFusion already has this logic but the current implementation is somewhat hacky and incomplete. Moving it to the optimizer will allow us to implement this correctly.

      Attachments

        Issue Links

          Activity

            People

              andygrove Andy Grove
              andygrove Andy Grove
              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 - 2h 10m
                  2h 10m