You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@arrow.apache.org by uw...@apache.org on 2018/04/03 04:32:39 UTC
[arrow] branch master updated: ARROW-2377: [GLib] Support old
GObject Introspection
This is an automated email from the ASF dual-hosted git repository.
uwe pushed a commit to branch master
in repository https://gitbox.apache.org/repos/asf/arrow.git
The following commit(s) were added to refs/heads/master by this push:
new 8fdad18 ARROW-2377: [GLib] Support old GObject Introspection
8fdad18 is described below
commit 8fdad18bdafa5e3e17f63a785d9c7eba62350ea5
Author: Kouhei Sutou <ko...@clear-code.com>
AuthorDate: Tue Apr 3 06:32:33 2018 +0200
ARROW-2377: [GLib] Support old GObject Introspection
Old GObject Introspection doesn't support "(nullable)" annotation.
Author: Kouhei Sutou <ko...@clear-code.com>
Closes #1826 from kou/glib-update-test and squashes the following commits:
135b0c8 <Kouhei Sutou> Support old GObject Introspection
---
c_glib/test/test-list-array.rb | 3 ++-
c_glib/test/test-struct-array.rb | 5 +++--
2 files changed, 5 insertions(+), 3 deletions(-)
diff --git a/c_glib/test/test-list-array.rb b/c_glib/test/test-list-array.rb
index 7f2c967..14f8406 100644
--- a/c_glib/test/test-list-array.rb
+++ b/c_glib/test/test-list-array.rb
@@ -21,7 +21,8 @@ class TestListArray < Test::Unit::TestCase
def test_new
value_offsets = Arrow::Buffer.new([0, 2, 5, 5].pack("l*"))
data = Arrow::Buffer.new([1, 2, 3, 4, 5].pack("c*"))
- values = Arrow::Int8Array.new(5, data, nil, 0)
+ nulls = Arrow::Buffer.new([0b11111].pack("C*"))
+ values = Arrow::Int8Array.new(5, data, nulls, 0)
assert_equal(build_list_array(Arrow::Int8DataType.new,
[[1, 2], [3, 4, 5], nil]),
Arrow::ListArray.new(3,
diff --git a/c_glib/test/test-struct-array.rb b/c_glib/test/test-struct-array.rb
index 29219f8..c55e95e 100644
--- a/c_glib/test/test-struct-array.rb
+++ b/c_glib/test/test-struct-array.rb
@@ -37,9 +37,10 @@ class TestStructArray < Test::Unit::TestCase
struct_array1 = build_struct_array(fields, structs)
data_type = Arrow::StructDataType.new(fields)
+ nulls = Arrow::Buffer.new([0b11].pack("C*"))
children = [
- Arrow::Int8Array.new(2, Arrow::Buffer.new([-29, 2].pack("C*")), nil, 0),
- Arrow::BooleanArray.new(2, Arrow::Buffer.new([0b01].pack("C*")), nil, 0),
+ Arrow::Int8Array.new(2, Arrow::Buffer.new([-29, 2].pack("C*")), nulls, 0),
+ Arrow::BooleanArray.new(2, Arrow::Buffer.new([0b01].pack("C*")), nulls, 0),
]
assert_equal(struct_array1,
Arrow::StructArray.new(data_type,
--
To stop receiving notification emails like this one, please contact
uwe@apache.org.