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

[C++] Refactor Substrait ToProto/FromProto to visitor pattern

    XMLWordPrintableJSON

Details

    • Improvement
    • Status: Open
    • Major
    • Resolution: Unresolved
    • None
    • None
    • C++

    Description

      Currently, the conversion between Acero and Substrait plans is done ad hoc using various overloads of the ToProto and FromProto functions. Code quality may benefit from refactoring this to a visitor pattern, to make it more easy to track state (ExtensionSet), store conversion options, maybe make multiple implementations in the future via inheritance, etc.

      It's probably better to do this sooner rather than later (if we're going to do it).

      Attachments

        Activity

          People

            Unassigned Unassigned
            jvanstraten Jeroen van Straten
            Votes:
            0 Vote for this issue
            Watchers:
            2 Start watching this issue

            Dates

              Created:
              Updated: