From a350766e09959042449134ff59082460037c4be0 Mon Sep 17 00:00:00 2001 From: Ian Cook Date: Fri, 15 Mar 2024 10:36:05 -0400 Subject: [PATCH] Simplify Ruby client example --- http/get_simple/ruby/client/client.rb | 7 ++----- 1 file changed, 2 insertions(+), 5 deletions(-) diff --git a/http/get_simple/ruby/client/client.rb b/http/get_simple/ruby/client/client.rb index a608bb5..c60202d 100644 --- a/http/get_simple/ruby/client/client.rb +++ b/http/get_simple/ruby/client/client.rb @@ -21,11 +21,8 @@ uri = URI("http://localhost:8008") start = Time.now -arrows_data = Net::HTTP.get(uri) -input = Arrow::BufferInputStream.new(arrows_data) -reader = Arrow::RecordBatchStreamReader.new(input) -schema = reader.schema -table = reader.read_all +arrows_data = Net::HTTP.get(uri).freeze +table = Arrow::Table.load(Arrow::Buffer.new(arrows_data), format: :arrows) elapsed_time = Time.now - start n_received_record_batches = table[0].data.n_chunks