rbhive 0.2.1 → 0.2.2

Sign up to get free protection for your applications and to get access to all the features.
Files changed (2) hide show
  1. data/lib/rbhive/connection.rb +3 -2
  2. metadata +3 -3
@@ -76,14 +76,15 @@ module RBHive
76
76
 
77
77
  def fetch_in_batch(query, batch_size=100)
78
78
  execute(query)
79
+ schema = client.getSchema
79
80
  until (next_batch = client.fetchN(batch_size)).empty?
80
- yield ResultSet.new(next_batch)
81
+ yield ResultSet.new(next_batch, schema)
81
82
  end
82
83
  end
83
84
 
84
85
  def first(query)
85
86
  execute(query)
86
- ResultSet.new([client.fetchOne])
87
+ ResultSet.new([client.fetchOne], client.getSchema)
87
88
  end
88
89
 
89
90
  def create_table(schema)
metadata CHANGED
@@ -1,7 +1,7 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: rbhive
3
3
  version: !ruby/object:Gem::Version
4
- version: 0.2.1
4
+ version: 0.2.2
5
5
  prerelease:
6
6
  platform: ruby
7
7
  authors:
@@ -14,7 +14,7 @@ default_executable:
14
14
  dependencies:
15
15
  - !ruby/object:Gem::Dependency
16
16
  name: thrift
17
- requirement: &2153944980 !ruby/object:Gem::Requirement
17
+ requirement: &2160558040 !ruby/object:Gem::Requirement
18
18
  none: false
19
19
  requirements:
20
20
  - - ! '>='
@@ -22,7 +22,7 @@ dependencies:
22
22
  version: 0.4.0
23
23
  type: :runtime
24
24
  prerelease: false
25
- version_requirements: *2153944980
25
+ version_requirements: *2160558040
26
26
  description: Simple lib for executing Hive queries
27
27
  email: andy@forward.co.uk
28
28
  executables: []