arrow-commits mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From w...@apache.org
Subject arrow git commit: ARROW-1174: [GLib] Fix ListArray test failure
Date Fri, 07 Jul 2017 16:31:22 GMT
Repository: arrow
Updated Branches:
  refs/heads/master c398fda75 -> 3309d1268


ARROW-1174: [GLib] Fix ListArray test failure

Data passed into `Arrow::Buffer` isn't owned by `Arrow::Buffer`. It's GLib bindings spec for
optimization.
We should keep `Arrow::Buffer` data until `Arrow::Buffer` is alive.

Author: Kouhei Sutou <kou@clear-code.com>

Closes #820 from kou/glib-fix-list-array-test-failure and squashes the following commits:

dfe9890e [Kouhei Sutou] [GLib] Fix ListArray test failure


Project: http://git-wip-us.apache.org/repos/asf/arrow/repo
Commit: http://git-wip-us.apache.org/repos/asf/arrow/commit/3309d126
Tree: http://git-wip-us.apache.org/repos/asf/arrow/tree/3309d126
Diff: http://git-wip-us.apache.org/repos/asf/arrow/diff/3309d126

Branch: refs/heads/master
Commit: 3309d126802f957b691a86044e32ae1828df33a7
Parents: c398fda
Author: Kouhei Sutou <kou@clear-code.com>
Authored: Fri Jul 7 12:31:17 2017 -0400
Committer: Wes McKinney <wes.mckinney@twosigma.com>
Committed: Fri Jul 7 12:31:17 2017 -0400

----------------------------------------------------------------------
 c_glib/test/run-test.rb | 9 +++++++++
 1 file changed, 9 insertions(+)
----------------------------------------------------------------------


http://git-wip-us.apache.org/repos/asf/arrow/blob/3309d126/c_glib/test/run-test.rb
----------------------------------------------------------------------
diff --git a/c_glib/test/run-test.rb b/c_glib/test/run-test.rb
index 50f548f..43bb220 100755
--- a/c_glib/test/run-test.rb
+++ b/c_glib/test/run-test.rb
@@ -32,6 +32,15 @@ ENV["GI_TYPELIB_PATH"] = [
 require "gi"
 
 Arrow = GI.load("Arrow")
+module Arrow
+  class Buffer
+    alias_method :initialize_raw, :initialize
+    def initialize(data)
+      initialize_raw(data)
+      @data = data
+    end
+  end
+end
 
 require "tempfile"
 require_relative "helper/buildable"


Mime
View raw message