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 CHANGED
@@ -1,7 +1,7 @@
1
1
  ---
2
2
  SHA1:
3
- metadata.gz: 7162ef02ea3157af633bd47a7af58854966b48db
4
- data.tar.gz: 5118f58ca84cb53855ee6d8787b67a486bb6e888
3
+ metadata.gz: cc144684e67c11aba628fa38f6ba455c453b87d2
4
+ data.tar.gz: 893c46973bfa5fc1c6a278b10ad7e81ea78be2dd
5
5
  SHA512:
6
- metadata.gz: a44ecbf5dd73f5826b8ba18236ba596ef442a2ad6b917677c169756cd353e9c587bc2a890a38338cfa44e764f65c0fd661cfbcf7a7ff7234c27c02dfb87f8285
7
- data.tar.gz: 70183a801075057703fbeefabb650c0f2ae6ace0582f99d2b37eaf5ddea9c409aa2549d4f4b0f0b87d18c9ca7e7ed73c536a072e18bb1647e9a0ca741515cd6f
6
+ metadata.gz: 9b79cc502d7a9f092116ce22a7abd72f6268b923429858c0ce2c822098f62be07a3b1a6d2f38cf16727a629507edf093d01f285c601144bde0f7f036cbae2dbe
7
+ data.tar.gz: 86cdb8c582355601eaebca39a37ca308c07af437e171b551620108c6223259215c1f2baf2e29fb28746c57ec61aec2ebae59ff104cd8c52e2880c006438bb222
@@ -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.0"
4
+ spec.version = "0.1.1"
5
5
  spec.authors = ["toyama0919"]
6
6
  spec.summary = "Facebook Presto input plugin for Embulk"
7
- spec.description = "Loads records from Presto."
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"
@@ -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.0
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-07 00:00:00.000000000 Z
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: Loads records from Presto.
69
+ description: Facebook Presto input plugin for Embulk.
70
70
  email:
71
71
  - toyama0919@gmail.com
72
72
  executables: []