embulk-output-redshift 0.7.7 → 0.7.8

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: 17e9658b80a721995d6bb7e3cb4aed8430c33997
4
- data.tar.gz: 69b707097ec9336c9869114794ff5bb2d45461d6
3
+ metadata.gz: 0d7fe1d8967d1047d320f4f97db4c9877d380dd9
4
+ data.tar.gz: 500599fe7553ef8178d4b770d1cf18ee94d4c0a8
5
5
  SHA512:
6
- metadata.gz: 280f48cd528c7151a554b1258b7fbfcb97b287e3de8f61f261e1ebc891418bc02564cac40e2885c6f062bdfdc3410a4071df17b2ef0f2a7aec85b19cb748fe5a
7
- data.tar.gz: bcac2333b188fb638ecd06507db9eb0f8e68d4ae553aef3385215cc7c3de4cef8c84074203dbd29740e21265def0faeb2e7c8dcb2918758e12a3f30ca088601b
6
+ metadata.gz: 834967f091fdc5bbe1747936096bcc450ca3b190fd0d96b2c325016999aedf97b73021ea97804f63139dc5184e32a83310d76a8d21c757e5de4c8e11c27584e0
7
+ data.tar.gz: 1721e9f0a10559c8a432736f4af94ce1f040a5925246c8fdfa145601acb03471ba8e472788f11cede92748dbe8304dec9477083717676fed3e11530d09db0152
@@ -2,8 +2,8 @@ dependencies {
2
2
  compile project(':embulk-output-jdbc')
3
3
  compile project(':embulk-output-postgresql')
4
4
 
5
- compile "com.amazonaws:aws-java-sdk-s3:1.10.33"
6
- compile "com.amazonaws:aws-java-sdk-sts:1.10.33"
5
+ compile "com.amazonaws:aws-java-sdk-s3:1.10.77"
6
+ compile "com.amazonaws:aws-java-sdk-sts:1.10.77"
7
7
  compile 'org.embulk.input.s3:embulk-util-aws-credentials:0.2.8'
8
8
 
9
9
  testCompile project(':embulk-output-jdbc').sourceSets.test.output
@@ -16,6 +16,7 @@ import org.embulk.config.Config;
16
16
  import org.embulk.config.ConfigDefault;
17
17
  import org.embulk.output.jdbc.AbstractJdbcOutputPlugin;
18
18
  import org.embulk.output.jdbc.BatchInsert;
19
+ import org.embulk.output.jdbc.JdbcOutputConnection;
19
20
  import org.embulk.output.redshift.RedshiftOutputConnector;
20
21
  import org.embulk.output.redshift.RedshiftCopyBatchInsert;
21
22
  import org.embulk.output.redshift.Ssl;
@@ -152,6 +153,17 @@ public class RedshiftOutputPlugin
152
153
  }
153
154
  }
154
155
 
156
+ @Override
157
+ protected String generateIntermediateTableNamePrefix(String baseTableName, JdbcOutputConnection con,
158
+ int suffixLength, int maxLength, LengthSemantics lengthSemantics) throws SQLException {
159
+ String namePrefix = super.generateIntermediateTableNamePrefix(baseTableName, con,
160
+ suffixLength, maxLength, lengthSemantics);
161
+ // Table names of Redshift are always lower cases.
162
+ // http://docs.aws.amazon.com/redshift/latest/dg/r_names.html
163
+ // says "identifiers are case-insensitive and are folded to lower case."
164
+ return namePrefix.toLowerCase();
165
+ }
166
+
155
167
  @Override
156
168
  protected BatchInsert newBatchInsert(PluginTask task, Optional<MergeConfig> mergeConfig) throws IOException, SQLException
157
169
  {
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.7.7
4
+ version: 0.7.8
5
5
  platform: ruby
6
6
  authors:
7
7
  - Sadayuki Furuhashi
8
8
  autorequire:
9
9
  bindir: bin
10
10
  cert_chain: []
11
- date: 2017-04-13 00:00:00.000000000 Z
11
+ date: 2017-05-10 00:00:00.000000000 Z
12
12
  dependencies: []
13
13
  description: Inserts or updates records to a table.
14
14
  email:
@@ -19,19 +19,20 @@ extra_rdoc_files: []
19
19
  files:
20
20
  - README.md
21
21
  - build.gradle
22
- - classpath/aws-java-sdk-core-1.10.33.jar
23
- - classpath/aws-java-sdk-kms-1.10.33.jar
24
- - classpath/aws-java-sdk-s3-1.10.33.jar
25
- - classpath/aws-java-sdk-sts-1.10.33.jar
22
+ - classpath/aws-java-sdk-core-1.10.77.jar
23
+ - classpath/aws-java-sdk-kms-1.10.77.jar
24
+ - classpath/aws-java-sdk-s3-1.10.77.jar
25
+ - classpath/aws-java-sdk-sts-1.10.77.jar
26
26
  - classpath/commons-codec-1.6.jar
27
27
  - classpath/commons-logging-1.1.3.jar
28
28
  - classpath/embulk-core-0.8.9.jar
29
- - classpath/embulk-output-jdbc-0.7.7.jar
30
- - classpath/embulk-output-postgresql-0.7.7.jar
31
- - classpath/embulk-output-redshift-0.7.7.jar
29
+ - classpath/embulk-output-jdbc-0.7.8.jar
30
+ - classpath/embulk-output-postgresql-0.7.8.jar
31
+ - classpath/embulk-output-redshift-0.7.8.jar
32
32
  - classpath/embulk-util-aws-credentials-0.2.8.jar
33
33
  - classpath/httpclient-4.3.6.jar
34
34
  - classpath/httpcore-4.3.3.jar
35
+ - classpath/jackson-dataformat-cbor-2.5.3.jar
35
36
  - classpath/jcl-over-slf4j-1.7.12.jar
36
37
  - classpath/msgpack-core-0.8.7.jar
37
38
  - classpath/postgresql-9.4-1205-jdbc41.jar