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

Method setup

c_glib/test/test-array-statistics.rb:21–40  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

19 include Helper::Buildable
20
21 def setup
22 omit("Parquet is required") unless defined?(::Parquet)
23
24 Tempfile.create(["data", ".parquet"]) do |file|
25 @file = file
26 array = build_int64_array([nil, -(2 ** 32), 2 ** 32])
27 @table = build_table("int64" => array)
28 writer = Parquet::ArrowFileWriter.new(@table.schema, @file.path)
29 chunk_size = 1024
30 writer.write_table(@table, chunk_size)
31 writer.close
32 reader = Parquet::ArrowFileReader.new(@file.path)
33 begin
34 @statistics = reader.read_table.get_column_data(0).get_chunk(0).statistics
35 yield
36 ensure
37 reader.unref
38 end
39 end
40 end
41
42 test("#has_null_count?") do
43 assert do

Callers

nothing calls this directly

Calls 8

newMethod · 0.45
schemaMethod · 0.45
pathMethod · 0.45
write_tableMethod · 0.45
closeMethod · 0.45
statisticsMethod · 0.45
get_chunkMethod · 0.45
read_tableMethod · 0.45

Tested by

no test coverage detected