lib/impala/cursor.rb in impala-0.3.1 vs lib/impala/cursor.rb in impala-0.4.0

- old
+ new

@@ -68,10 +68,14 @@ # Returns true if there are any more rows to fetch. def has_more? !@done || !@row_buffer.empty? end + def runtime_profile + @service.GetRuntimeProfile(@handle) + end + private def metadata @metadata ||= @service.get_results_metadata(@handle) end @@ -119,10 +123,10 @@ elsif value == 'false' false else raise ParsingError.new("Invalid value for boolean: #{value}") end - when 'tinyint', 'int', 'bigint' + when 'tinyint', 'smallint', 'int', 'bigint' value.to_i when 'double', 'float' value.to_f when "timestamp" Time.parse(value)