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 +4 -4
- data/embulk-input-presto.gemspec +1 -1
- data/lib/embulk/input/presto/explain_parser.rb +1 -1
- metadata +2 -2
checksums.yaml
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
---
|
2
2
|
SHA1:
|
3
|
-
metadata.gz:
|
4
|
-
data.tar.gz:
|
3
|
+
metadata.gz: b17507c57f3215e7d0c8741561db9f282a04a7ed
|
4
|
+
data.tar.gz: e8ad3b24e1948fe6d0b81e3edac7461878b184ae
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: da031db90faa630236c8a19337e5c398dad3230cfbb6d394d5642944d8a95802c2ebc36582b03e00798155c9bc0c25f61f5228c56a648ed2c66eb9d236bd7b04
|
7
|
+
data.tar.gz: 88a0d573a778c14968cbb1a0a80c2f42d4fc39779971a4790a67dfb9bd4ee1cb8b26f33879a3dd4b745fb099b5f95102e161fb7696a6b549c705a5d02f997841
|
data/embulk-input-presto.gemspec
CHANGED
@@ -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
|
+
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
|
+
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:
|
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
|