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

[Ruby] Interface for FileOutputStream doesn't respect append=True

    XMLWordPrintableJSON

    Details

    • Type: Bug
    • Status: Resolved
    • Priority: Major
    • Resolution: Fixed
    • Affects Version/s: None
    • Fix Version/s: 0.12.0
    • Component/s: Ruby
    • Environment:
      macOS High Sierra version 10.13.4; ruby 2.4.1; gtk-doc, gobject-introspection, boost, Arrow C++ & Parquet C++, Arrow GLib all installed via homebrew

      Description

      It seems that the PR (#1978) that resolved Issue #2018 has not cascaded down through the existing ruby interface.

      I've been experimenting with variations of the `write-file.rb` examples, but passing in the append flag as true (`Arrow::FileOutputStream.open("/tmp/file.arrow", true)`) still results in overwriting the file, and trying the newer interface using truncate and append flags throws `ArgumentError: wrong number of arguments (3 for 2)`.

        Attachments

          Issue Links

            Activity

              People

              • Assignee:
                kou Sutou Kouhei
                Reporter:
                ismurray Ian Murray
              • Votes:
                0 Vote for this issue
                Watchers:
                2 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 - 1h 20m
                  1h 20m