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

[Docs] Clarify immutability assumption in the C Data Interface documentation

    XMLWordPrintableJSON

Details

    • Task
    • Status: Resolved
    • Major
    • Resolution: Fixed
    • None
    • 10.0.0
    • Documentation, Format
    • None

    Description

      The current documentation (https://arrow.apache.org/docs/dev/format/CDataInterface.html) is not explicit about whether there are any guarantees about (im)mutability.

      My assumption is that the consumer of C Data Interface structs should assume the data to be immutable by default (unless they would know that the producer is fine with mutating the data). But it would be good to document this.

      (as a reference, the DLPack Python docs mention this: https://dmlc.github.io/dlpack/latest/python_spec.html#semantics)

      Attachments

        Activity

          People

            apitrou Antoine Pitrou
            jorisvandenbossche Joris Van den Bossche
            Votes:
            0 Vote for this issue
            Watchers:
            3 Start watching this issue

            Dates

              Created:
              Updated:
              Resolved: