embulk-output-vertica 0.1.5 → 0.1.6

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: 81d94a9a3a707573b6eaed08fcd3b64f2890963d
4
- data.tar.gz: 56035fc8679597c91ac57eab7ddba7cab8938710
3
+ metadata.gz: 3f78066cc105d0aa31d8fe9a70f9166facdef222
4
+ data.tar.gz: 9f60547ac77c5f54461722b907f8fafd5c32000c
5
5
  SHA512:
6
- metadata.gz: f2a54c45a4407fa37a2e1fb2fbb7326d3091c3ceb8d6dd30d6bea701be34c6cb75743e48bae9ad6ef6247a85f0f31f3fc736fe12be7444c29a4eb181e0f066ae
7
- data.tar.gz: 1a192bde5bdfd73e3988500cfb198462a86cd2979b4df688fe189f7f1fc36ab1c158e95f5c67067545524bff1edb0bd85fcf1d43734686430fcd86f618722e1c
6
+ metadata.gz: 9fee2ba24167506cfe0ef7fbae612361ecc15bc42d35bbee245d0221f573742434768e8b49f11a62332ee8c8e8475e26d44fcce4259b963e459bb36c9f2c39d8
7
+ data.tar.gz: 257182e4efed2b0ef43b955ab989bcd658a9d14b5efb09dc56106c1dd1a7f68e6080414c91e534c5c4db480a29a54accff892bd63d6522fe7e72c6f5940aa3d0
data/CHANGELOG.md CHANGED
@@ -1,3 +1,9 @@
1
+ # 0.1.6 (2015/07/24)
2
+
3
+ Enhancements:
4
+
5
+ * Enhancement of debug log
6
+
1
7
  # 0.1.5 (2015/07/24)
2
8
 
3
9
  Fixes:
@@ -1,6 +1,6 @@
1
1
  Gem::Specification.new do |spec|
2
2
  spec.name = "embulk-output-vertica"
3
- spec.version = "0.1.5"
3
+ spec.version = "0.1.6"
4
4
  spec.authors = ["eiji.sekiya", "Naotoshi Seo"]
5
5
  spec.email = ["eiji.sekiya.0326@gmail.com", "sonots@gmail.com"]
6
6
  spec.summary = "Vertica output plugin for Embulk"
@@ -59,7 +59,7 @@ module Embulk
59
59
  ensure
60
60
  connect(task) do |jv|
61
61
  query(jv, %[DROP TABLE IF EXISTS #{quoted_schema}.#{quoted_temp_table}])
62
- Embulk.logger.debug { query(jv, %[SELECT * FROM #{quoted_schema}.#{quoted_table} LIMIT 10]).map {|row| row.to_h }.join("\n") }
62
+ Embulk.logger.debug { query(jv, %[SELECT * FROM #{quoted_schema}.#{quoted_table} LIMIT 10]).map {|row| row.to_h }.join("\n") rescue nil }
63
63
  end
64
64
  end
65
65
  return {}
@@ -140,7 +140,7 @@ module Embulk
140
140
  end
141
141
 
142
142
  def self.query(conn, sql)
143
- Embulk.logger.debug sql
143
+ Embulk.logger.debug "embulk-output-vertica: #{sql}"
144
144
  conn.query(sql)
145
145
  end
146
146
 
@@ -149,7 +149,7 @@ module Embulk
149
149
  end
150
150
 
151
151
  def copy(conn, sql, &block)
152
- Embulk.logger.debug sql
152
+ Embulk.logger.debug "embulk-output-vertica: #{sql}"
153
153
  conn.copy(sql, &block)
154
154
  end
155
155
 
metadata CHANGED
@@ -1,7 +1,7 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: embulk-output-vertica
3
3
  version: !ruby/object:Gem::Version
4
- version: 0.1.5
4
+ version: 0.1.6
5
5
  platform: ruby
6
6
  authors:
7
7
  - eiji.sekiya