sequel-hive-adapter 0.2.1 → 0.2.2
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- data/VERSION +1 -1
- data/lib/sequel/adapters/hive.rb +1 -1
- data/sequel-hive-adapter.gemspec +1 -1
- metadata +2 -2
data/VERSION
CHANGED
@@ -1 +1 @@
|
|
1
|
-
0.2.
|
1
|
+
0.2.2
|
data/lib/sequel/adapters/hive.rb
CHANGED
@@ -28,7 +28,6 @@ module Sequel
|
|
28
28
|
|
29
29
|
def schema(table, opts={})
|
30
30
|
hero = execute("DESCRIBE #{table}")
|
31
|
-
puts "test"
|
32
31
|
hero[2..-1].map do |h|
|
33
32
|
[h.first.strip.to_sym, {:db_type => h[1].strip.to_sym, :type => h[1].strip.to_sym}]
|
34
33
|
end.reject{|r| [:"", :col_name].include?(r.first) || r.first[/Partition Information/] }
|
@@ -65,6 +64,7 @@ module Sequel
|
|
65
64
|
end
|
66
65
|
|
67
66
|
def convert_type(column)
|
67
|
+
return :to_s if columns.select{|a| a.is_a? Symbol}.empty? # in case columns does not contain column names
|
68
68
|
db_type = schema.select{|a| a.first == column}.first.last[:db_type]
|
69
69
|
CONVERT_FROM[db_type]
|
70
70
|
end
|
data/sequel-hive-adapter.gemspec
CHANGED
metadata
CHANGED
@@ -2,7 +2,7 @@
|
|
2
2
|
name: sequel-hive-adapter
|
3
3
|
version: !ruby/object:Gem::Version
|
4
4
|
prerelease:
|
5
|
-
version: 0.2.
|
5
|
+
version: 0.2.2
|
6
6
|
platform: ruby
|
7
7
|
authors:
|
8
8
|
- hrp
|
@@ -136,7 +136,7 @@ required_ruby_version: !ruby/object:Gem::Requirement
|
|
136
136
|
requirements:
|
137
137
|
- - ">="
|
138
138
|
- !ruby/object:Gem::Version
|
139
|
-
hash:
|
139
|
+
hash: -3665073520467314074
|
140
140
|
segments:
|
141
141
|
- 0
|
142
142
|
version: "0"
|