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

[Rust] [DataFusion] Make DataFusion casting rules consistent with cast kernel

    XMLWordPrintableJSON

Details

    • Improvement
    • Status: Resolved
    • Major
    • Resolution: Fixed
    • 2.0.0
    • 3.0.0
    • Rust

    Description

      There are plan time checks for valid type casts in DataFusion that are designed to catch errors early before plan execution

      Sadly the cast types that DataFusion thinks are valid is a significant subset of what the arrow cast kernel supports. The goal of this ticket is to bring DataFusion to parity with the type casting supported by arrow and allow DataFusion to plan all casts that are supported by the arrow cast kernel

      (I want this implicitly so when I add support for DictionaryArray casts in Arrow they also are part of DataFusion)

      Previously the notions of coercion and casting were somewhat conflated. I have tried to clarify them in https://github.com/apache/arrow/pull/8399 as well

      For more detail, see https://github.com/apache/arrow/pull/8340#discussion_r501257096 from jorgecarleitao

      Attachments

        Activity

          People

            alamb Andrew Lamb
            alamb Andrew Lamb
            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 - 4h
                4h