MCPcopy Create free account
hub / github.com/apache/arrow / test_add_column

Method test_add_column

c_glib/test/test-table.rb:150–156  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

148 end
149
150 def test_add_column
151 field = Arrow::Field.new("added", Arrow::BooleanDataType.new)
152 chunked_array = Arrow::ChunkedArray.new([build_boolean_array([true])])
153 new_table = @table.add_column(1, field, chunked_array)
154 assert_equal(["visible", "added", "valid"],
155 new_table.schema.fields.collect(&:name))
156 end
157
158 def test_remove_column
159 new_table = @table.remove_column(0)

Callers

nothing calls this directly

Calls 3

newMethod · 0.45
fieldsMethod · 0.45
schemaMethod · 0.45

Tested by

no test coverage detected