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

[C++/Python] Human readable arrow schema comparison

    XMLWordPrintableJSON

Details

    • Improvement
    • Status: Open
    • Minor
    • Resolution: Unresolved
    • None
    • None
    • C++, Python

    Description

      When working with arrow schemas it would be helpful to have a human readable representation of the diff between two schemas.

      This could be either exposed as a function returning a string/diff object or via a function raising an Exception with this information.

      For instance:

      schema_diff = get_schema_diff(schema1, schema2)
      expected_diff = """
      - col_changed: int8
      + col_changed: double
      
      + col_additional: int8
      """
      assert schema_diff == expected_diff
      

       

      Attachments

        Activity

          People

            Unassigned Unassigned
            fjetter Florian Jetter
            Votes:
            0 Vote for this issue
            Watchers:
            4 Start watching this issue

            Dates

              Created:
              Updated: