mobilize-hive 1.375 → 1.376

Sign up to get free protection for your applications and to get access to all the features.
data/Gemfile CHANGED
@@ -2,3 +2,15 @@ source 'https://rubygems.org'
2
2
 
3
3
  # Specify your gem's dependencies in mobilize-hadoop.gemspec
4
4
  gemspec
5
+
6
+ group :test, :development do
7
+ if File.exists? File.expand_path("../../mobilize-base", __FILE__)
8
+ gem 'mobilize-base', path: File.expand_path("../../mobilize-base", __FILE__)
9
+ end
10
+ if File.exists? File.expand_path("../../mobilize-ssh", __FILE__)
11
+ gem 'mobilize-ssh' , path: File.expand_path("../../mobilize-ssh", __FILE__)
12
+ end
13
+ if File.exists? File.expand_path("../../mobilize-hdfs", __FILE__)
14
+ gem 'mobilize-hdfs', path: File.expand_path("../../mobilize-hdfs", __FILE__)
15
+ end
16
+ end
@@ -338,10 +338,11 @@ module Mobilize
338
338
 
339
339
  part_drop_hql = part_hash_array.map do |h|
340
340
  part_drop_stmt = h.map do |name,value|
341
- part_defs[name[1..-2]].downcase=="string" ? "#{name}='#{value}'" : "#{name}=#{value}"
341
+ column = name.gsub(/^`(.+)`$/) { $1 }
342
+ part_defs[column].downcase=="string" ? "#{name}='#{value}'" : "#{name}=#{value}"
342
343
  end.join(",")
343
- "use #{db};alter table #{table} drop if exists partition (#{part_drop_stmt});"
344
- end.join
344
+ "use #{db};alter table #{table} drop if exists partition (#{part_drop_stmt});"
345
+ end.join
345
346
  target_create_hql = part_drop_hql
346
347
  end
347
348
 
@@ -1,5 +1,5 @@
1
1
  module Mobilize
2
2
  module Hive
3
- VERSION = "1.375"
3
+ VERSION = "1.376"
4
4
  end
5
5
  end
@@ -17,5 +17,5 @@ Gem::Specification.new do |gem|
17
17
  gem.executables = gem.files.grep(%r{^bin/}).map{ |f| File.basename(f) }
18
18
  gem.test_files = gem.files.grep(%r{^(test|spec|features)/})
19
19
  gem.require_paths = ["lib"]
20
- gem.add_runtime_dependency "mobilize-hdfs","1.375"
20
+ gem.add_runtime_dependency "mobilize-hdfs","1.376"
21
21
  end
metadata CHANGED
@@ -1,7 +1,7 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: mobilize-hive
3
3
  version: !ruby/object:Gem::Version
4
- version: '1.375'
4
+ version: '1.376'
5
5
  prerelease:
6
6
  platform: ruby
7
7
  authors:
@@ -10,7 +10,7 @@ authors:
10
10
  autorequire:
11
11
  bindir: bin
12
12
  cert_chain: []
13
- date: 2013-08-20 00:00:00.000000000 Z
13
+ date: 2013-08-21 00:00:00.000000000 Z
14
14
  dependencies:
15
15
  - !ruby/object:Gem::Dependency
16
16
  name: mobilize-hdfs
@@ -19,7 +19,7 @@ dependencies:
19
19
  requirements:
20
20
  - - '='
21
21
  - !ruby/object:Gem::Version
22
- version: '1.375'
22
+ version: '1.376'
23
23
  type: :runtime
24
24
  prerelease: false
25
25
  version_requirements: !ruby/object:Gem::Requirement
@@ -27,7 +27,7 @@ dependencies:
27
27
  requirements:
28
28
  - - '='
29
29
  - !ruby/object:Gem::Version
30
- version: '1.375'
30
+ version: '1.376'
31
31
  description: Adds hive read, write, and run support to mobilize-hdfs
32
32
  email:
33
33
  - cpaesleme@dena.com