embulk-output-vertica 0.5.2 → 0.5.3
Sign up to get free protection for your applications and to get access to all the features.
- checksums.yaml +4 -4
- data/CHANGELOG.md +6 -0
- data/embulk-output-vertica.gemspec +1 -1
- data/lib/embulk/output/vertica/output_thread.rb +5 -3
- 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: 64254a208edbd6f0c254ed8cabdbee4fac53dbdf
|
4
|
+
data.tar.gz: 41b73b19cdbc334be205a45a57c2dded37ff3a53
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: 3a97e62ed025bfb4b81423db3027a38709946a6900d68976f96fb20772c513852b80315722bbea0e0014c8425312e5b3340170319540e42a3945de511e653498
|
7
|
+
data.tar.gz: ba2307d15902dafcb306c478f6ec993a411a4eef5a975b14125ae8ca9a73f1c0abe4064bc662124194017ac104172fb960101f3f5182937aefcb550601bd4f48
|
data/CHANGELOG.md
CHANGED
@@ -1,6 +1,6 @@
|
|
1
1
|
Gem::Specification.new do |spec|
|
2
2
|
spec.name = "embulk-output-vertica"
|
3
|
-
spec.version = "0.5.
|
3
|
+
spec.version = "0.5.3"
|
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"
|
@@ -41,7 +41,7 @@ module Embulk
|
|
41
41
|
|
42
42
|
def enqueue(page)
|
43
43
|
if @thread_active and @thread.alive?
|
44
|
-
Embulk.logger.trace { "embulk-output-vertica:
|
44
|
+
Embulk.logger.trace { "embulk-output-vertica: enqueue" }
|
45
45
|
@queue.push(page)
|
46
46
|
else
|
47
47
|
Embulk.logger.info { "embulk-output-vertica: thread is dead, but still trying to enqueue" }
|
@@ -63,6 +63,7 @@ module Embulk
|
|
63
63
|
Embulk.logger.trace { "embulk-output-vertica: dequeued" }
|
64
64
|
|
65
65
|
page.each do |record|
|
66
|
+
Embulk.logger.trace { "embulk-output-vertica: record #{record}" }
|
66
67
|
json = to_json(record)
|
67
68
|
Embulk.logger.trace { "embulk-output-vertica: to_json #{json}" }
|
68
69
|
stdin << json << "\n"
|
@@ -73,15 +74,16 @@ module Embulk
|
|
73
74
|
num_rejected_rows = rejects.size
|
74
75
|
@num_output_rows += num_output_rows
|
75
76
|
@num_rejected_rows += num_rejected_rows
|
76
|
-
jv.commit
|
77
77
|
Embulk.logger.info { "embulk-output-vertica: COMMIT!" }
|
78
|
+
jv.commit
|
79
|
+
Embulk.logger.debug { "embulk-output-vertica: COMMITTED!" }
|
78
80
|
rescue java.sql.SQLDataException => e
|
79
|
-
jv.rollback
|
80
81
|
if @task['reject_on_materialized_type_error'] and e.message =~ /Rejected by user-defined parser/
|
81
82
|
Embulk.logger.warn "embulk-output-vertica: ROLLBACK! some of column types and values types do not fit #{json}"
|
82
83
|
else
|
83
84
|
Embulk.logger.warn "embulk-output-vertica: ROLLBACK!"
|
84
85
|
end
|
86
|
+
jv.rollback
|
85
87
|
raise e # die transaction
|
86
88
|
rescue => e
|
87
89
|
Embulk.logger.warn "embulk-output-vertica: ROLLBACK!"
|
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.5.
|
4
|
+
version: 0.5.3
|
5
5
|
platform: ruby
|
6
6
|
authors:
|
7
7
|
- eiji.sekiya
|
@@ -9,7 +9,7 @@ authors:
|
|
9
9
|
autorequire:
|
10
10
|
bindir: bin
|
11
11
|
cert_chain: []
|
12
|
-
date: 2016-01-
|
12
|
+
date: 2016-01-09 00:00:00.000000000 Z
|
13
13
|
dependencies:
|
14
14
|
- !ruby/object:Gem::Dependency
|
15
15
|
name: jvertica
|