embulk-input-redshift 0.3.0 → 0.4.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 +4 -4
- data/README.md +22 -2
- data/classpath/{embulk-input-jdbc-0.3.0.jar → embulk-input-jdbc-0.4.0.jar} +0 -0
- data/classpath/{embulk-input-postgresql-0.3.0.jar → embulk-input-postgresql-0.4.0.jar} +0 -0
- data/classpath/{embulk-input-redshift-0.3.0.jar → embulk-input-redshift-0.4.0.jar} +0 -0
- 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: 3ad72eed1e485ab471dac2e9d44f01c1b4237bfb
|
4
|
+
data.tar.gz: c6b93b4021536b52e27a59d3af53cfcfa57fa8f5
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: 99dc1f9745c4afc6e43dd6539d22ef5366c8c19b07155402f910b8355d918ebe79c4bb529c307ae1191da9909c1ad7e48b92910b55470df9ed71c95de1e8fe69
|
7
|
+
data.tar.gz: 6f7a4ddc45b9dd93c8823a18be602b3e76cae9da96fc878a68a12379119d55b02cda628b6ae2c1caad67fefc564a03a43bdc8a3750ae24ff026fa5fb250abbb0
|
data/README.md
CHANGED
@@ -15,11 +15,15 @@ Redshift input plugins for Embulk loads records from Redshift.
|
|
15
15
|
- **password**: database login password (string, default: "")
|
16
16
|
- **database**: destination database name (string, required)
|
17
17
|
- **schema**: destination schema name (string, default: "public")
|
18
|
-
- **table**: destination table name (string, required)
|
19
|
-
- **select**: comma-separated list of columns to select (string, default: "*")
|
20
18
|
- **where**: WHERE condition to filter the rows (string, default: no-condition)
|
21
19
|
- **fetch_rows**: number of rows to fetch one time (used for java.sql.Statement#setFetchSize) (integer, default: 10000)
|
22
20
|
- **options**: extra JDBC properties (hash, default: {})
|
21
|
+
- If you write SQL directly,
|
22
|
+
- **query**: SQL to run (string)
|
23
|
+
- If **query** is not set,
|
24
|
+
- **table**: destination table name (string, required)
|
25
|
+
- **select**: comma-separated list of columns to select (string, default: "*")
|
26
|
+
- **where**: WHERE condition to filter the rows (string, default: no-condition)
|
23
27
|
|
24
28
|
## Example
|
25
29
|
|
@@ -35,6 +39,22 @@ in:
|
|
35
39
|
where: "col4 != 'a'"
|
36
40
|
```
|
37
41
|
|
42
|
+
If you need a complex SQL,
|
43
|
+
|
44
|
+
```yaml
|
45
|
+
in:
|
46
|
+
type: redshift
|
47
|
+
host: localhost
|
48
|
+
user: myuser
|
49
|
+
password: ""
|
50
|
+
database: my_database
|
51
|
+
query: |
|
52
|
+
SELECT t1.id, t1.name, t2.id AS t2_id, t2.name AS t2_name
|
53
|
+
FROM table1 AS t1
|
54
|
+
LEFT JOIN table2 AS t2
|
55
|
+
ON t1.id = t2.t1_id
|
56
|
+
```
|
57
|
+
|
38
58
|
## Build
|
39
59
|
|
40
60
|
```
|
Binary file
|
Binary file
|
Binary file
|
metadata
CHANGED
@@ -1,14 +1,14 @@
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
2
2
|
name: embulk-input-redshift
|
3
3
|
version: !ruby/object:Gem::Version
|
4
|
-
version: 0.
|
4
|
+
version: 0.4.0
|
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-
|
11
|
+
date: 2015-03-06 00:00:00.000000000 Z
|
12
12
|
dependencies: []
|
13
13
|
description: Selects records from a table.
|
14
14
|
email:
|
@@ -21,9 +21,9 @@ files:
|
|
21
21
|
- build.gradle
|
22
22
|
- lib/embulk/input/redshift.rb
|
23
23
|
- src/main/java/org/embulk/input/RedshiftInputPlugin.java
|
24
|
-
- classpath/embulk-input-jdbc-0.
|
25
|
-
- classpath/embulk-input-postgresql-0.
|
26
|
-
- classpath/embulk-input-redshift-0.
|
24
|
+
- classpath/embulk-input-jdbc-0.4.0.jar
|
25
|
+
- classpath/embulk-input-postgresql-0.4.0.jar
|
26
|
+
- classpath/embulk-input-redshift-0.4.0.jar
|
27
27
|
- classpath/jna-4.1.0.jar
|
28
28
|
- classpath/jna-platform-4.1.0.jar
|
29
29
|
- classpath/postgresql-9.4-1200-jdbc41.jar
|