embulk-input-presto 0.2.4 → 0.2.5

Sign up to get free protection for your applications and to get access to all the features.
checksums.yaml CHANGED
@@ -1,7 +1,7 @@
1
1
  ---
2
2
  SHA1:
3
- metadata.gz: 2d7705a889097a41994287f7b932a2995ecd4cc9
4
- data.tar.gz: de5c74348510efda0511b469ff187d980257111b
3
+ metadata.gz: b17507c57f3215e7d0c8741561db9f282a04a7ed
4
+ data.tar.gz: e8ad3b24e1948fe6d0b81e3edac7461878b184ae
5
5
  SHA512:
6
- metadata.gz: 3794381a079a877d77502ebb60520713ef9cfc20c7e17cccffc0f2ad99680f5c694f9c9044fc12469de6d609da4694e535c734010cb51ad74046e9486e52194e
7
- data.tar.gz: 10ccafd83385cc078282ada02ab184013124b3aa36bd26526383cbd2b5429bda8a46cce171ad7b9f9341ed2cc75dd2d7cb08b781e74e43b4dbeaf5b579847f06
6
+ metadata.gz: da031db90faa630236c8a19337e5c398dad3230cfbb6d394d5642944d8a95802c2ebc36582b03e00798155c9bc0c25f61f5228c56a648ed2c66eb9d236bd7b04
7
+ data.tar.gz: 88a0d573a778c14968cbb1a0a80c2f42d4fc39779971a4790a67dfb9bd4ee1cb8b26f33879a3dd4b745fb099b5f95102e161fb7696a6b549c705a5d02f997841
@@ -1,7 +1,7 @@
1
1
 
2
2
  Gem::Specification.new do |spec|
3
3
  spec.name = "embulk-input-presto"
4
- spec.version = "0.2.4"
4
+ spec.version = "0.2.5"
5
5
  spec.authors = ["toyama0919"]
6
6
  spec.summary = "Facebook Presto input plugin for Embulk"
7
7
  spec.description = "Facebook Presto input plugin for Embulk."
@@ -6,7 +6,7 @@ module Embulk
6
6
  explain_text = explain_result.flatten.last.lines.first
7
7
  column_name_raw, column_type_raw = explain_text.split(' => ')
8
8
  names = column_name_raw.split('[').last.split(']').first.split(',').map{ |name| name.strip }
9
- types = column_type_raw.split('[').last.split(']').first.split(',').map{ |info| info.split(':').last }
9
+ types = column_type_raw.split('[').last.split(']').first.gsub(/\(.+?\)/, "").split(',').map{ |info| info.split(':').last }
10
10
  names.zip(types)
11
11
  end
12
12
  end
metadata CHANGED
@@ -1,14 +1,14 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: embulk-input-presto
3
3
  version: !ruby/object:Gem::Version
4
- version: 0.2.4
4
+ version: 0.2.5
5
5
  platform: ruby
6
6
  authors:
7
7
  - toyama0919
8
8
  autorequire:
9
9
  bindir: bin
10
10
  cert_chain: []
11
- date: 2016-11-25 00:00:00.000000000 Z
11
+ date: 2017-02-20 00:00:00.000000000 Z
12
12
  dependencies:
13
13
  - !ruby/object:Gem::Dependency
14
14
  requirement: !ruby/object:Gem::Requirement