rbhive 0.2.94 → 0.2.95

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/schema_definition.rb +3 -1
  2. metadata +59 -39
@@ -63,6 +63,8 @@ module RBHive
63
63
 
64
64
  def coerce_column(column_name, value)
65
65
  type = column_type_map[column_name]
66
+ return 1.0/0.0 if(type != :string && value == "Infinity")
67
+ return 0.0/0.0 if(type != :string && value == "NaN")
66
68
  return nil if value.nil? || value == 'NULL' || value == 'null'
67
69
  return coerce_complex_value(value) if type.to_s =~ /^array/
68
70
  conversion_method = TYPES[type]
@@ -80,4 +82,4 @@ module RBHive
80
82
  JSON.parse(value)
81
83
  end
82
84
  end
83
- end
85
+ end
metadata CHANGED
@@ -1,44 +1,57 @@
1
- --- !ruby/object:Gem::Specification
1
+ --- !ruby/object:Gem::Specification
2
2
  name: rbhive
3
- version: !ruby/object:Gem::Version
4
- version: 0.2.94
5
- prerelease:
3
+ version: !ruby/object:Gem::Version
4
+ prerelease: false
5
+ segments:
6
+ - 0
7
+ - 2
8
+ - 95
9
+ version: 0.2.95
6
10
  platform: ruby
7
- authors:
11
+ authors:
8
12
  - Forward Internet Group
9
13
  autorequire:
10
14
  bindir: bin
11
15
  cert_chain: []
12
- date: 2010-12-07 00:00:00.000000000 Z
13
- dependencies:
14
- - !ruby/object:Gem::Dependency
16
+
17
+ date: 2010-12-07 00:00:00 +00:00
18
+ default_executable:
19
+ dependencies:
20
+ - !ruby/object:Gem::Dependency
15
21
  name: thrift
16
- requirement: &70366900708200 !ruby/object:Gem::Requirement
17
- none: false
18
- requirements:
19
- - - ! '>='
20
- - !ruby/object:Gem::Version
22
+ prerelease: false
23
+ requirement: &id001 !ruby/object:Gem::Requirement
24
+ requirements:
25
+ - - ">="
26
+ - !ruby/object:Gem::Version
27
+ segments:
28
+ - 0
29
+ - 4
30
+ - 0
21
31
  version: 0.4.0
22
32
  type: :runtime
23
- prerelease: false
24
- version_requirements: *70366900708200
25
- - !ruby/object:Gem::Dependency
33
+ version_requirements: *id001
34
+ - !ruby/object:Gem::Dependency
26
35
  name: json
27
- requirement: &70366900707140 !ruby/object:Gem::Requirement
28
- none: false
29
- requirements:
30
- - - ! '>='
31
- - !ruby/object:Gem::Version
32
- version: '0'
33
- type: :runtime
34
36
  prerelease: false
35
- version_requirements: *70366900707140
37
+ requirement: &id002 !ruby/object:Gem::Requirement
38
+ requirements:
39
+ - - ">="
40
+ - !ruby/object:Gem::Version
41
+ segments:
42
+ - 0
43
+ version: "0"
44
+ type: :runtime
45
+ version_requirements: *id002
36
46
  description: Simple lib for executing Hive queries
37
47
  email: andy@forward.co.uk
38
48
  executables: []
49
+
39
50
  extensions: []
51
+
40
52
  extra_rdoc_files: []
41
- files:
53
+
54
+ files:
42
55
  - lib/rbhive.rb
43
56
  - lib/rbhive/connection.rb
44
57
  - lib/rbhive/table_schema.rb
@@ -60,28 +73,35 @@ files:
60
73
  - lib/thrift/serde_types.rb
61
74
  - lib/thrift/thrift_hive.rb
62
75
  - lib/thrift/thrift_hive_metastore.rb
76
+ has_rdoc: true
63
77
  homepage: http://github.com/forward/rbhive
64
78
  licenses: []
79
+
65
80
  post_install_message:
66
81
  rdoc_options: []
67
- require_paths:
82
+
83
+ require_paths:
68
84
  - lib
69
- required_ruby_version: !ruby/object:Gem::Requirement
70
- none: false
71
- requirements:
72
- - - ! '>='
73
- - !ruby/object:Gem::Version
74
- version: '0'
75
- required_rubygems_version: !ruby/object:Gem::Requirement
76
- none: false
77
- requirements:
78
- - - ! '>='
79
- - !ruby/object:Gem::Version
80
- version: '0'
85
+ required_ruby_version: !ruby/object:Gem::Requirement
86
+ requirements:
87
+ - - ">="
88
+ - !ruby/object:Gem::Version
89
+ segments:
90
+ - 0
91
+ version: "0"
92
+ required_rubygems_version: !ruby/object:Gem::Requirement
93
+ requirements:
94
+ - - ">="
95
+ - !ruby/object:Gem::Version
96
+ segments:
97
+ - 0
98
+ version: "0"
81
99
  requirements: []
100
+
82
101
  rubyforge_project:
83
- rubygems_version: 1.8.11
102
+ rubygems_version: 1.3.6
84
103
  signing_key:
85
104
  specification_version: 3
86
105
  summary: Simple lib for executing Hive queries
87
106
  test_files: []
107
+