mobilize-hive 1.382 → 1.383

Sign up to get free protection for your applications and to get access to all the features.
@@ -66,9 +66,9 @@ module Mobilize
66
66
  result_hash = {}
67
67
  result_hash['location'] = describe_output.split("location:").last.split(",").first
68
68
  #get fields
69
- field_defs = describe_output.split(" \nDetailed Table Information").first.split(
69
+ field_defs = describe_output.split(/\n(Detailed Table Information|# Partition Information)/).first.split(
70
70
  "\n").map{|f|
71
- f.strip.split("\t").ie{|fa|
71
+ f.strip.split(/[\t\s]+/).ie{|fa|
72
72
  {"name"=>fa.first,"datatype"=>fa.second} if fa.first}}.compact
73
73
  #check for partititons
74
74
  if describe_output.index("partitionKeys:[FieldSchema")
@@ -103,6 +103,7 @@ module Mobilize
103
103
  prep_out
104
104
  end.join
105
105
  hql = "#{preps}#{hql}"
106
+ puts "FULL HQL QUERY: " + hql
106
107
  filename = "hql"
107
108
  file_hash||= {}
108
109
  file_hash[filename] = hql
@@ -1,5 +1,5 @@
1
1
  module Mobilize
2
2
  module Hive
3
- VERSION = "1.382"
3
+ VERSION = "1.383"
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.382"
20
+ gem.add_runtime_dependency "mobilize-hdfs","1.383"
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.382'
4
+ version: '1.383'
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-12-17 00:00:00.000000000 Z
13
+ date: 2013-12-20 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.382'
22
+ version: '1.383'
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.382'
30
+ version: '1.383'
31
31
  description: Adds hive read, write, and run support to mobilize-hdfs
32
32
  email:
33
33
  - cpaesleme@dena.com