This is an automated email from the ASF dual-hosted git repository.
kszucs 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 9feb01a ARROW-4978: [Ruby] Fix wrong internal variable name for table
data
9feb01a is described below
commit 9feb01ad8ba817b02cd6e34e3cb0604f8daa332d
Author: Kouhei Sutou <[email protected]>
AuthorDate: Thu Mar 21 14:35:59 2019 +0100
ARROW-4978: [Ruby] Fix wrong internal variable name for table data
Author: Kouhei Sutou <[email protected]>
Closes #3995 from kou/ruby-table-fix-wrong-variable-name and squashes the
following commits:
50356f00 <Kouhei Sutou> Fix wrong variable name
---
ruby/red-arrow/lib/arrow/table-loader.rb | 28 ++++++++++++++--------------
1 file changed, 14 insertions(+), 14 deletions(-)
diff --git a/ruby/red-arrow/lib/arrow/table-loader.rb
b/ruby/red-arrow/lib/arrow/table-loader.rb
index 9bfd410..15bd9ee 100644
--- a/ruby/red-arrow/lib/arrow/table-loader.rb
+++ b/ruby/red-arrow/lib/arrow/table-loader.rb
@@ -18,14 +18,14 @@
module Arrow
class TableLoader
class << self
- def load(output, options={})
- new(output, options).load
+ def load(input, options={})
+ new(input, options).load
end
end
- def initialize(output, options={})
- output = output.to_path if output.respond_to?(:to_path)
- @output = output
+ def initialize(input, options={})
+ input = input.to_path if input.respond_to?(:to_path)
+ @input = input
@options = options
fill_options
end
@@ -50,7 +50,7 @@ module Arrow
__send__(custom_load_method)
else
# For backward compatibility.
- __send__(custom_load_method, @output)
+ __send__(custom_load_method, @input)
end
end
@@ -60,10 +60,10 @@ module Arrow
return
end
- if @output.is_a?(Buffer)
+ if @input.is_a?(Buffer)
info = {}
else
- extension = PathExtension.new(@output)
+ extension = PathExtension.new(@input)
info = extension.extract
end
format = info[:format]
@@ -79,10 +79,10 @@ module Arrow
end
def open_input_stream
- if @output.is_a?(Buffer)
- BufferInputStream.new(@output)
+ if @input.is_a?(Buffer)
+ BufferInputStream.new(@input)
else
- MemoryMappedInputStream.new(@output)
+ MemoryMappedInputStream.new(@input)
end
end
@@ -152,10 +152,10 @@ module Arrow
def load_as_csv
options = @options.dup
options.delete(:format)
- if @output.is_a?(Buffer)
- CSVLoader.load(@output.data.to_s, options)
+ if @input.is_a?(Buffer)
+ CSVLoader.load(@input.data.to_s, options)
else
- CSVLoader.load(Pathname.new(@output), options)
+ CSVLoader.load(Pathname.new(@input), options)
end
end