mobilize-hive 1.21 → 1.22
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/lib/mobilize-hive/handlers/hive.rb +3 -1
- data/lib/mobilize-hive/version.rb +1 -1
- metadata +3 -3
|
@@ -352,7 +352,9 @@ module Mobilize
|
|
|
352
352
|
|
|
353
353
|
else
|
|
354
354
|
#get all the permutations of possible partititons
|
|
355
|
-
|
|
355
|
+
part_set_hql = "set hive.cli.print.header=true;set mapred.job.name=#{job_name} (permutations);"
|
|
356
|
+
part_select_hql = "select distinct #{target_part_stmt} from #{source_table_path};"
|
|
357
|
+
part_perm_hql = part_set_hql + part_select_hql
|
|
356
358
|
part_perm_tsv = Hive.run(cluster, part_perm_hql, user_name)['stdout']
|
|
357
359
|
#having gotten the permutations, ensure they are dropped
|
|
358
360
|
part_hash_array = part_perm_tsv.tsv_to_hash_array
|
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.
|
|
4
|
+
version: '1.22'
|
|
5
5
|
prerelease:
|
|
6
6
|
platform: ruby
|
|
7
7
|
authors:
|
|
@@ -66,7 +66,7 @@ required_ruby_version: !ruby/object:Gem::Requirement
|
|
|
66
66
|
version: '0'
|
|
67
67
|
segments:
|
|
68
68
|
- 0
|
|
69
|
-
hash: -
|
|
69
|
+
hash: -4582611704376704444
|
|
70
70
|
required_rubygems_version: !ruby/object:Gem::Requirement
|
|
71
71
|
none: false
|
|
72
72
|
requirements:
|
|
@@ -75,7 +75,7 @@ required_rubygems_version: !ruby/object:Gem::Requirement
|
|
|
75
75
|
version: '0'
|
|
76
76
|
segments:
|
|
77
77
|
- 0
|
|
78
|
-
hash: -
|
|
78
|
+
hash: -4582611704376704444
|
|
79
79
|
requirements: []
|
|
80
80
|
rubyforge_project:
|
|
81
81
|
rubygems_version: 1.8.25
|