embulk-input-presto 0.1.0 → 0.1.1
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 +2 -2
- data/lib/embulk/input/presto.rb +5 -1
- metadata +3 -3
checksums.yaml
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
---
|
2
2
|
SHA1:
|
3
|
-
metadata.gz:
|
4
|
-
data.tar.gz:
|
3
|
+
metadata.gz: cc144684e67c11aba628fa38f6ba455c453b87d2
|
4
|
+
data.tar.gz: 893c46973bfa5fc1c6a278b10ad7e81ea78be2dd
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: 9b79cc502d7a9f092116ce22a7abd72f6268b923429858c0ce2c822098f62be07a3b1a6d2f38cf16727a629507edf093d01f285c601144bde0f7f036cbae2dbe
|
7
|
+
data.tar.gz: 86cdb8c582355601eaebca39a37ca308c07af437e171b551620108c6223259215c1f2baf2e29fb28746c57ec61aec2ebae59ff104cd8c52e2880c006438bb222
|
data/embulk-input-presto.gemspec
CHANGED
@@ -1,10 +1,10 @@
|
|
1
1
|
|
2
2
|
Gem::Specification.new do |spec|
|
3
3
|
spec.name = "embulk-input-presto"
|
4
|
-
spec.version = "0.1.
|
4
|
+
spec.version = "0.1.1"
|
5
5
|
spec.authors = ["toyama0919"]
|
6
6
|
spec.summary = "Facebook Presto input plugin for Embulk"
|
7
|
-
spec.description = "
|
7
|
+
spec.description = "Facebook Presto input plugin for Embulk."
|
8
8
|
spec.email = ["toyama0919@gmail.com"]
|
9
9
|
spec.licenses = ["MIT"]
|
10
10
|
spec.homepage = "https://github.com/toyama0919/embulk-input-presto"
|
data/lib/embulk/input/presto.rb
CHANGED
@@ -37,18 +37,22 @@ module Embulk
|
|
37
37
|
schema: task['schema']
|
38
38
|
)
|
39
39
|
@query = task["query"]
|
40
|
+
|
41
|
+
Embulk.logger.info "SQL: #{@query}"
|
40
42
|
end
|
41
43
|
|
42
44
|
def run
|
45
|
+
size = 0
|
43
46
|
@client.query(@query) do |q|
|
44
47
|
q.each_row {|row|
|
45
48
|
page_builder.add(row)
|
46
49
|
}
|
50
|
+
size = q.rows.size
|
47
51
|
end
|
48
52
|
|
49
53
|
page_builder.finish
|
50
54
|
|
51
|
-
task_report = {}
|
55
|
+
task_report = { size: size }
|
52
56
|
return task_report
|
53
57
|
end
|
54
58
|
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.1.
|
4
|
+
version: 0.1.1
|
5
5
|
platform: ruby
|
6
6
|
authors:
|
7
7
|
- toyama0919
|
8
8
|
autorequire:
|
9
9
|
bindir: bin
|
10
10
|
cert_chain: []
|
11
|
-
date: 2015-12-
|
11
|
+
date: 2015-12-08 00:00:00.000000000 Z
|
12
12
|
dependencies:
|
13
13
|
- !ruby/object:Gem::Dependency
|
14
14
|
requirement: !ruby/object:Gem::Requirement
|
@@ -66,7 +66,7 @@ dependencies:
|
|
66
66
|
- - ">="
|
67
67
|
- !ruby/object:Gem::Version
|
68
68
|
version: '10.0'
|
69
|
-
description:
|
69
|
+
description: Facebook Presto input plugin for Embulk.
|
70
70
|
email:
|
71
71
|
- toyama0919@gmail.com
|
72
72
|
executables: []
|