embulk-output-vertica 0.5.9 → 0.6.0

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
checksums.yaml CHANGED
@@ -1,7 +1,7 @@
1
1
  ---
2
2
  SHA1:
3
- metadata.gz: 43ce7f3d95fb038f1ed88f0d6439971ca7fcaae3
4
- data.tar.gz: ba0bbaf232f3e38694ef9671b677998e2773c6a1
3
+ metadata.gz: 7f0b0d02a9ff30f770a79446f61fde851384cad2
4
+ data.tar.gz: 00593d52bc997c70edf0346b61b7dd364123f7ed
5
5
  SHA512:
6
- metadata.gz: 25060fb55332281e7f54a88cdfb6d91d90287dbc3250722e4ca9b56c935bb728e1269e6d954d91e82822dcbfb5ecb4e5ed29833d9ae9deb04f1449a5e0ae4c2d
7
- data.tar.gz: 6826c93e0abd8cbb0664145fbbb19899d754e8e67948b1ac9e151bca324235f66d5ab995c8ed209ca138e3e78d78be9c08574bbac5c03fe32f87d74715f22ec6
6
+ metadata.gz: 6cd6fb398bb1d00afd15d288a5a7d7d3684d8390bc2e7a9dfe32c3c74e090ee27192367d61b881331b346a563e4ec6b00866d84fcbd80d40c58313ba63b2f506
7
+ data.tar.gz: 3df83b2b636d78fe7748aec6218c4d23c090bcc7cca5da447f42f71910e6b4a6c2d8b80b710ea083b0ffcf38cf1d860eeedbbc8641eff330e9e5df7af499ad47
data/CHANGELOG.md CHANGED
@@ -1,3 +1,9 @@
1
+ # 0.6.0 (2016/01/26)
2
+
3
+ Changes:
4
+
5
+ * Add `/*+ direct */` hint to insert select if copy_mode == DIRECT
6
+
1
7
  # 0.5.9 (2016/01/26)
2
8
 
3
9
  Enhancements:
@@ -1,6 +1,6 @@
1
1
  Gem::Specification.new do |spec|
2
2
  spec.name = "embulk-output-vertica"
3
- spec.version = "0.5.9"
3
+ spec.version = "0.6.0"
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"
@@ -102,7 +102,8 @@ module Embulk
102
102
 
103
103
  # insert select from the temp table
104
104
  connect(task) do |jv|
105
- query(jv, %[INSERT INTO #{quoted_schema}.#{quoted_table} SELECT * FROM #{quoted_schema}.#{quoted_temp_table}])
105
+ hint = '/*+ direct */ ' if task['copy_mode'] == 'DIRECT' # I did not prepare a specific option, does anyone want?
106
+ query(jv, %[INSERT #{hint}INTO #{quoted_schema}.#{quoted_table} SELECT * FROM #{quoted_schema}.#{quoted_temp_table}])
106
107
  jv.commit
107
108
  end
108
109
  ensure
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.9
4
+ version: 0.6.0
5
5
  platform: ruby
6
6
  authors:
7
7
  - eiji.sekiya