embulk-output-redshift 0.4.2 → 0.4.3
Sign up to get free protection for your applications and to get access to all the features.
- checksums.yaml +4 -4
- data/README.md +3 -7
- data/classpath/{embulk-output-jdbc-0.4.2.jar → embulk-output-jdbc-0.4.3.jar} +0 -0
- data/classpath/{embulk-output-postgresql-0.4.2.jar → embulk-output-postgresql-0.4.3.jar} +0 -0
- data/classpath/{embulk-output-redshift-0.4.2.jar → embulk-output-redshift-0.4.3.jar} +0 -0
- data/src/main/java/org/embulk/output/RedshiftOutputPlugin.java +1 -1
- metadata +5 -5
checksums.yaml
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
---
|
2
2
|
SHA1:
|
3
|
-
metadata.gz:
|
4
|
-
data.tar.gz:
|
3
|
+
metadata.gz: a834b3ecaa1647f5a627a28330d9dbc87957e068
|
4
|
+
data.tar.gz: d4fb2fbb43acf8c088988cbb0675b4a6fc75ab68
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: e4f5fc4818d5b23af08f8f16a89733f056407ccc67587d08b71ad969db4f205edea3d7d90f8ac1ff669bf64fad329a9112228636da2bc0395c394e9aea320913
|
7
|
+
data.tar.gz: d524eab4e0fd5464a44bdaa5cd0312e7515b066eb3bd17b177b557817ec35f93ccbb61b38f289feea44747b5110a5c395b8908ce7cc92aaee2a5ac13ede0c625
|
data/README.md
CHANGED
@@ -35,23 +35,19 @@ Redshift output plugins for Embulk loads records to Redshift.
|
|
35
35
|
### Modes
|
36
36
|
|
37
37
|
* **insert**:
|
38
|
-
* Behavior: This mode writes rows to some intermediate tables first. If all those tasks run correctly, runs `INSERT INTO <target_table> SELECT * FROM <intermediate_table_1> UNION ALL SELECT * FROM <intermediate_table_2> UNION ALL ...` query.
|
38
|
+
* Behavior: This mode writes rows to some intermediate tables first. If all those tasks run correctly, runs `INSERT INTO <target_table> SELECT * FROM <intermediate_table_1> UNION ALL SELECT * FROM <intermediate_table_2> UNION ALL ...` query. If the target table doesn't exist, it is created automatically.
|
39
39
|
* Transactional: Yes. This mode successfully writes all rows, or fails with writing zero rows.
|
40
40
|
* Resumable: Yes.
|
41
41
|
* **insert_direct**:
|
42
|
-
* Behavior: This mode inserts rows to the target table directly.
|
42
|
+
* Behavior: This mode inserts rows to the target table directly. If the target table doesn't exist, it is created automatically.
|
43
43
|
* Transactional: No. If fails, the target table could have some rows inserted.
|
44
44
|
* Resumable: No.
|
45
45
|
* **truncate_insert**:
|
46
46
|
* Behavior: Same with `insert` mode excepting that it truncates the target table right before the last `INSERT ...` query.
|
47
47
|
* Transactional: Yes.
|
48
48
|
* Resumable: Yes.
|
49
|
-
* **merge**:
|
50
|
-
* Behavior: This mode writes rows to some intermediate tables first. If all those tasks run correctly, runs `with updated AS (UPDATE .... RETURNING ...) INSERT INTO ....` query.
|
51
|
-
* Transactional: Yes.
|
52
|
-
* Resumable: Yes.
|
53
49
|
* **replace**:
|
54
|
-
* Behavior:
|
50
|
+
* Behavior: This mode writes rows to an intermediate table first. If all those tasks run correctly, drops the target table and alters the name of the intermediate table into the target table name.
|
55
51
|
* Transactional: Yes.
|
56
52
|
* Resumable: No.
|
57
53
|
|
Binary file
|
Binary file
|
Binary file
|
@@ -74,7 +74,7 @@ public class RedshiftOutputPlugin
|
|
74
74
|
{
|
75
75
|
return new Features()
|
76
76
|
.setMaxTableNameLength(30)
|
77
|
-
.setSupportedModes(ImmutableSet.of(Mode.INSERT, Mode.INSERT_DIRECT, Mode.
|
77
|
+
.setSupportedModes(ImmutableSet.of(Mode.INSERT, Mode.INSERT_DIRECT, Mode.TRUNCATE_INSERT, Mode.REPLACE))
|
78
78
|
.setIgnoreMergeKeys(false);
|
79
79
|
}
|
80
80
|
|
metadata
CHANGED
@@ -1,14 +1,14 @@
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
2
2
|
name: embulk-output-redshift
|
3
3
|
version: !ruby/object:Gem::Version
|
4
|
-
version: 0.4.
|
4
|
+
version: 0.4.3
|
5
5
|
platform: ruby
|
6
6
|
authors:
|
7
7
|
- Sadayuki Furuhashi
|
8
8
|
autorequire:
|
9
9
|
bindir: bin
|
10
10
|
cert_chain: []
|
11
|
-
date: 2015-12-
|
11
|
+
date: 2015-12-17 00:00:00.000000000 Z
|
12
12
|
dependencies: []
|
13
13
|
description: Inserts or updates records to a table.
|
14
14
|
email:
|
@@ -30,9 +30,9 @@ files:
|
|
30
30
|
- classpath/aws-java-sdk-sts-1.10.33.jar
|
31
31
|
- classpath/commons-codec-1.6.jar
|
32
32
|
- classpath/commons-logging-1.1.3.jar
|
33
|
-
- classpath/embulk-output-jdbc-0.4.
|
34
|
-
- classpath/embulk-output-postgresql-0.4.
|
35
|
-
- classpath/embulk-output-redshift-0.4.
|
33
|
+
- classpath/embulk-output-jdbc-0.4.3.jar
|
34
|
+
- classpath/embulk-output-postgresql-0.4.3.jar
|
35
|
+
- classpath/embulk-output-redshift-0.4.3.jar
|
36
36
|
- classpath/httpclient-4.3.6.jar
|
37
37
|
- classpath/httpcore-4.3.3.jar
|
38
38
|
- classpath/postgresql-9.4-1205-jdbc41.jar
|