embulk-output-oracle 0.7.10 → 0.7.11
Sign up to get free protection for your applications and to get access to all the features.
- checksums.yaml +4 -4
- data/README.md +16 -0
- data/build.gradle +1 -1
- data/classpath/{embulk-output-jdbc-0.7.10.jar → embulk-output-jdbc-0.7.11.jar} +0 -0
- data/classpath/{embulk-output-oracle-0.7.10.jar → embulk-output-oracle-0.7.11.jar} +0 -0
- data/src/test/java/org/embulk/output/oracle/BasicTest.java +450 -0
- data/src/test/java/org/embulk/output/oracle/DummyFileSystem.java +96 -0
- data/src/test/java/org/embulk/output/oracle/DummyFileSystemProvider.java +154 -0
- data/src/test/java/org/embulk/output/oracle/DummyPath.java +188 -0
- data/src/test/java/org/embulk/output/oracle/OracleTests.java +90 -0
- data/src/test/resources/org/embulk/output/oracle/test/expect/basic/setup.sql +54 -0
- data/src/test/resources/org/embulk/output/oracle/test/expect/basic/test1.csv +4 -0
- data/src/test/resources/org/embulk/output/oracle/test/expect/basic/test_expected.diff +2 -0
- data/src/test/resources/org/embulk/output/oracle/test/expect/basic/test_insert.yml +2 -0
- data/src/test/resources/org/embulk/output/oracle/test/expect/basic/test_insert_create_expected.csv +3 -0
- data/src/test/resources/org/embulk/output/oracle/test/expect/basic/test_insert_direct.yml +2 -0
- data/src/test/resources/org/embulk/output/oracle/test/expect/basic/test_insert_direct_direct.yml +3 -0
- data/src/test/resources/org/embulk/output/oracle/test/expect/basic/test_insert_direct_large.yml +5 -0
- data/src/test/resources/org/embulk/output/oracle/test/expect/basic/test_insert_direct_multibyte_table.yml +2 -0
- data/src/test/resources/org/embulk/output/oracle/test/expect/basic/test_insert_direct_oci.yml +5 -0
- data/src/test/resources/org/embulk/output/oracle/test/expect/basic/test_insert_direct_oci_large.yml +6 -0
- data/src/test/resources/org/embulk/output/oracle/test/expect/basic/test_insert_direct_oci_multibyte_table.yml +5 -0
- data/src/test/resources/org/embulk/output/oracle/test/expect/basic/test_insert_empty_expected.csv +1 -0
- data/src/test/resources/org/embulk/output/oracle/test/expect/basic/test_insert_expected.csv +4 -0
- data/src/test/resources/org/embulk/output/oracle/test/expect/basic/test_insert_large_expected.csv +9999 -0
- data/src/test/resources/org/embulk/output/oracle/test/expect/basic/test_insert_multibyte_table.yml +2 -0
- data/src/test/resources/{oracle/data/test3/test3.csv → org/embulk/output/oracle/test/expect/basic/test_large.csv} +3 -3
- data/src/test/resources/org/embulk/output/oracle/test/expect/basic/test_lower_column.csv +4 -0
- data/src/test/resources/org/embulk/output/oracle/test/expect/basic/test_lower_column.yml +2 -0
- data/src/test/resources/org/embulk/output/oracle/test/expect/basic/test_lower_column_options.csv +4 -0
- data/src/test/resources/org/embulk/output/oracle/test/expect/basic/test_lower_column_options.yml +5 -0
- data/src/test/resources/org/embulk/output/oracle/test/expect/basic/test_lower_table.yml +2 -0
- data/src/test/resources/org/embulk/output/oracle/test/expect/basic/test_merge.csv +6 -0
- data/src/test/resources/org/embulk/output/oracle/test/expect/basic/test_merge.yml +2 -0
- data/src/test/resources/org/embulk/output/oracle/test/expect/basic/test_merge_expected.csv +6 -0
- data/src/test/resources/{oracle/data/test5/test5.csv → org/embulk/output/oracle/test/expect/basic/test_merge_keys.csv} +5 -4
- data/src/test/resources/org/embulk/output/oracle/test/expect/basic/test_merge_keys.yml +3 -0
- data/src/test/resources/org/embulk/output/oracle/test/expect/basic/test_merge_keys_expected.csv +5 -0
- data/src/test/resources/org/embulk/output/oracle/test/expect/basic/test_merge_rule.csv +6 -0
- data/src/test/resources/org/embulk/output/oracle/test/expect/basic/test_merge_rule.yml +3 -0
- data/src/test/resources/org/embulk/output/oracle/test/expect/basic/test_merge_rule_expected.csv +6 -0
- data/src/test/resources/org/embulk/output/oracle/test/expect/basic/test_replace.yml +2 -0
- data/src/test/resources/org/embulk/output/oracle/test/expect/basic/test_replace_column_options.yml +10 -0
- data/src/test/resources/org/embulk/output/oracle/test/expect/basic/test_replace_longname.yml +2 -0
- data/src/test/resources/org/embulk/output/oracle/test/expect/basic/test_replace_longname_multibyte.yml +2 -0
- data/src/test/resources/org/embulk/output/oracle/test/expect/basic/test_replace_oci.yml +3 -0
- data/src/test/resources/org/embulk/output/oracle/test/expect/basic/test_string_timestamp.csv +4 -0
- data/src/test/resources/org/embulk/output/oracle/test/expect/basic/test_string_timestamp.yml +5 -0
- data/src/test/resources/org/embulk/output/oracle/test/expect/basic/test_string_timestamp_expected.csv +4 -0
- data/src/test/resources/org/embulk/output/oracle/test/expect/basic/test_truncate_insert.yml +2 -0
- data/src/test/resources/org/embulk/output/oracle/test/expect/basic/test_truncate_insert_expected.csv +3 -0
- data/src/test/resources/org/embulk/output/oracle/test/expect/basic/test_truncate_insert_oci.yml +3 -0
- metadata +51 -36
- data/src/test/java/org/embulk/input/filesplit/LocalFileSplitInputPlugin.java +0 -185
- data/src/test/java/org/embulk/input/filesplit/PartialFile.java +0 -50
- data/src/test/java/org/embulk/input/filesplit/PartialFileInputStream.java +0 -154
- data/src/test/java/org/embulk/output/oracle/OracleOutputPluginTest.java +0 -887
- data/src/test/resources/oracle/data/test1/test1.csv +0 -3
- data/src/test/resources/oracle/data/test4/test4.csv +0 -5
- data/src/test/resources/oracle/yml/test-insert-direct-direct-method.yml +0 -27
- data/src/test/resources/oracle/yml/test-insert-direct-empty.yml +0 -26
- data/src/test/resources/oracle/yml/test-insert-direct-oci-method-large.yml +0 -29
- data/src/test/resources/oracle/yml/test-insert-direct-oci-method-multibyte.yml +0 -29
- data/src/test/resources/oracle/yml/test-insert-direct-oci-method-split.yml +0 -29
- data/src/test/resources/oracle/yml/test-insert-direct-oci-method.yml +0 -29
- data/src/test/resources/oracle/yml/test-insert-direct.yml +0 -26
- data/src/test/resources/oracle/yml/test-insert-empty.yml +0 -28
- data/src/test/resources/oracle/yml/test-insert.yml +0 -26
- data/src/test/resources/oracle/yml/test-lower-column-options.yml +0 -29
- data/src/test/resources/oracle/yml/test-lower-column.yml +0 -26
- data/src/test/resources/oracle/yml/test-lower-table.yml +0 -26
- data/src/test/resources/oracle/yml/test-merge-keys.yml +0 -23
- data/src/test/resources/oracle/yml/test-merge-rule.yml +0 -23
- data/src/test/resources/oracle/yml/test-merge.yml +0 -22
- data/src/test/resources/oracle/yml/test-replace-empty.yml +0 -33
- data/src/test/resources/oracle/yml/test-replace-long-name-multibyte.yml +0 -33
- data/src/test/resources/oracle/yml/test-replace-long-name.yml +0 -33
- data/src/test/resources/oracle/yml/test-replace-oci-method.yml +0 -34
- data/src/test/resources/oracle/yml/test-replace.yml +0 -33
- data/src/test/resources/oracle/yml/test-string-timestamp.yml +0 -29
- data/src/test/resources/oracle/yml/test-truncate-insert-oci-method.yml +0 -27
- data/src/test/resources/oracle/yml/test-truncate-insert.yml +0 -26
- data/src/test/resources/oracle/yml/test-url.yml +0 -25
@@ -1,33 +0,0 @@
|
|
1
|
-
in:
|
2
|
-
type: file
|
3
|
-
path_prefix: '/oracle/data/test1/test1.csv'
|
4
|
-
parser:
|
5
|
-
charset: UTF-8
|
6
|
-
newline: CRLF
|
7
|
-
type: csv
|
8
|
-
delimiter: ','
|
9
|
-
quote: ''
|
10
|
-
columns:
|
11
|
-
- {name: ID, type: string}
|
12
|
-
- {name: VARCHAR2_ITEM, type: string}
|
13
|
-
- {name: NVARCHAR2_ITEM, type: string}
|
14
|
-
- {name: INTEGER_ITEM, type: long}
|
15
|
-
- {name: NUMBER_ITEM, type: string}
|
16
|
-
- {name: DATE_ITEM, type: timestamp, format: '%Y/%m/%d'}
|
17
|
-
- {name: TIMESTAMP_ITEM, type: timestamp, format: '%Y/%m/%d %H:%M:%S'}
|
18
|
-
out:
|
19
|
-
type: oracle
|
20
|
-
host: #host#
|
21
|
-
database: #database#
|
22
|
-
user: #user#
|
23
|
-
password: #password#
|
24
|
-
table: TEST123456789012345678
|
25
|
-
mode: replace
|
26
|
-
column_options:
|
27
|
-
VARCHAR2_ITEM: {type: 'VARCHAR2(6)'}
|
28
|
-
NVARCHAR2_ITEM: {type: 'NVARCHAR2(6)'}
|
29
|
-
INTEGER_ITEM: {type: 'NUMBER(4,0)'}
|
30
|
-
NUMBER_ITEM: {type: 'NUMBER(10,2)'}
|
31
|
-
DATE_ITEM: {type: 'DATE'}
|
32
|
-
TIMESTAMP_ITEM: {type: 'TIMESTAMP'}
|
33
|
-
#driver_path: driver/ojdbc7.jar
|
@@ -1,33 +0,0 @@
|
|
1
|
-
in:
|
2
|
-
type: file
|
3
|
-
path_prefix: '/oracle/data/test1/test1.csv'
|
4
|
-
parser:
|
5
|
-
charset: UTF-8
|
6
|
-
newline: CRLF
|
7
|
-
type: csv
|
8
|
-
delimiter: ','
|
9
|
-
quote: ''
|
10
|
-
columns:
|
11
|
-
- {name: ID, type: string}
|
12
|
-
- {name: VARCHAR2_ITEM, type: string}
|
13
|
-
- {name: NVARCHAR2_ITEM, type: string}
|
14
|
-
- {name: INTEGER_ITEM, type: long}
|
15
|
-
- {name: NUMBER_ITEM, type: string}
|
16
|
-
- {name: DATE_ITEM, type: timestamp, format: '%Y/%m/%d'}
|
17
|
-
- {name: TIMESTAMP_ITEM, type: timestamp, format: '%Y/%m/%d %H:%M:%S'}
|
18
|
-
out:
|
19
|
-
type: oracle
|
20
|
-
host: #host#
|
21
|
-
database: #database#
|
22
|
-
user: #user#
|
23
|
-
password: #password#
|
24
|
-
table: TEST12345678901234567890123456
|
25
|
-
mode: replace
|
26
|
-
column_options:
|
27
|
-
VARCHAR2_ITEM: {type: 'VARCHAR2(6)'}
|
28
|
-
NVARCHAR2_ITEM: {type: 'NVARCHAR2(6)'}
|
29
|
-
INTEGER_ITEM: {type: 'NUMBER(4,0)'}
|
30
|
-
NUMBER_ITEM: {type: 'NUMBER(10,2)'}
|
31
|
-
DATE_ITEM: {type: 'DATE'}
|
32
|
-
TIMESTAMP_ITEM: {type: 'TIMESTAMP'}
|
33
|
-
#driver_path: driver/ojdbc7.jar
|
@@ -1,34 +0,0 @@
|
|
1
|
-
in:
|
2
|
-
type: file
|
3
|
-
path_prefix: '/oracle/data/test1/test1.csv'
|
4
|
-
parser:
|
5
|
-
charset: UTF-8
|
6
|
-
newline: CRLF
|
7
|
-
type: csv
|
8
|
-
delimiter: ','
|
9
|
-
quote: ''
|
10
|
-
columns:
|
11
|
-
- {name: ID, type: string}
|
12
|
-
- {name: VARCHAR2_ITEM, type: string}
|
13
|
-
- {name: NVARCHAR2_ITEM, type: string}
|
14
|
-
- {name: INTEGER_ITEM, type: long}
|
15
|
-
- {name: NUMBER_ITEM, type: string}
|
16
|
-
- {name: DATE_ITEM, type: timestamp, format: '%Y/%m/%d'}
|
17
|
-
- {name: TIMESTAMP_ITEM, type: timestamp, format: '%Y/%m/%d %H:%M:%S'}
|
18
|
-
out:
|
19
|
-
type: oracle
|
20
|
-
host: #host#
|
21
|
-
database: #database#
|
22
|
-
user: #user#
|
23
|
-
password: #password#
|
24
|
-
table: TEST1
|
25
|
-
mode: replace
|
26
|
-
insert_method: oci
|
27
|
-
column_options:
|
28
|
-
VARCHAR2_ITEM: {type: 'VARCHAR2(6)'}
|
29
|
-
NVARCHAR2_ITEM: {type: 'NVARCHAR2(6)'}
|
30
|
-
INTEGER_ITEM: {type: 'NUMBER(4,0)'}
|
31
|
-
NUMBER_ITEM: {type: 'NUMBER(10,2)'}
|
32
|
-
DATE_ITEM: {type: 'DATE'}
|
33
|
-
TIMESTAMP_ITEM: {type: 'TIMESTAMP'}
|
34
|
-
#driver_path: driver/ojdbc7.jar
|
@@ -1,33 +0,0 @@
|
|
1
|
-
in:
|
2
|
-
type: file
|
3
|
-
path_prefix: '/oracle/data/test1/test1.csv'
|
4
|
-
parser:
|
5
|
-
charset: UTF-8
|
6
|
-
newline: CRLF
|
7
|
-
type: csv
|
8
|
-
delimiter: ','
|
9
|
-
quote: ''
|
10
|
-
columns:
|
11
|
-
- {name: ID, type: string}
|
12
|
-
- {name: VARCHAR2_ITEM, type: string}
|
13
|
-
- {name: NVARCHAR2_ITEM, type: string}
|
14
|
-
- {name: INTEGER_ITEM, type: long}
|
15
|
-
- {name: NUMBER_ITEM, type: string}
|
16
|
-
- {name: DATE_ITEM, type: timestamp, format: '%Y/%m/%d'}
|
17
|
-
- {name: TIMESTAMP_ITEM, type: timestamp, format: '%Y/%m/%d %H:%M:%S'}
|
18
|
-
out:
|
19
|
-
type: oracle
|
20
|
-
host: #host#
|
21
|
-
database: #database#
|
22
|
-
user: #user#
|
23
|
-
password: #password#
|
24
|
-
table: TEST1
|
25
|
-
mode: replace
|
26
|
-
column_options:
|
27
|
-
VARCHAR2_ITEM: {type: 'VARCHAR2(6)'}
|
28
|
-
NVARCHAR2_ITEM: {type: 'NVARCHAR2(6)'}
|
29
|
-
INTEGER_ITEM: {type: 'NUMBER(4,0)'}
|
30
|
-
NUMBER_ITEM: {type: 'NUMBER(10,2)'}
|
31
|
-
DATE_ITEM: {type: 'DATE'}
|
32
|
-
TIMESTAMP_ITEM: {type: 'TIMESTAMP'}
|
33
|
-
#driver_path: driver/ojdbc7.jar
|
@@ -1,29 +0,0 @@
|
|
1
|
-
in:
|
2
|
-
type: file
|
3
|
-
path_prefix: '/oracle/data/test1/test1.csv'
|
4
|
-
parser:
|
5
|
-
charset: UTF-8
|
6
|
-
newline: CRLF
|
7
|
-
type: csv
|
8
|
-
delimiter: ','
|
9
|
-
quote: ''
|
10
|
-
columns:
|
11
|
-
- {name: ID, type: string}
|
12
|
-
- {name: VARCHAR2_ITEM, type: string}
|
13
|
-
- {name: NVARCHAR2_ITEM, type: string}
|
14
|
-
- {name: INTEGER_ITEM, type: long}
|
15
|
-
- {name: NUMBER_ITEM, type: string}
|
16
|
-
- {name: DATE_ITEM, type: string}
|
17
|
-
- {name: TIMESTAMP_ITEM, type: string}
|
18
|
-
out:
|
19
|
-
type: oracle
|
20
|
-
host: #host#
|
21
|
-
database: #database#
|
22
|
-
user: #user#
|
23
|
-
password: #password#
|
24
|
-
table: TEST1
|
25
|
-
mode: insert_direct
|
26
|
-
column_options:
|
27
|
-
DATE_ITEM: {value_type: pass}
|
28
|
-
TIMESTAMP_ITEM: {value_type: pass}
|
29
|
-
#driver_path: driver/ojdbc7.jar
|
@@ -1,27 +0,0 @@
|
|
1
|
-
in:
|
2
|
-
type: file
|
3
|
-
path_prefix: '/oracle/data/test1/test1.csv'
|
4
|
-
parser:
|
5
|
-
charset: UTF-8
|
6
|
-
newline: CRLF
|
7
|
-
type: csv
|
8
|
-
delimiter: ','
|
9
|
-
quote: ''
|
10
|
-
columns:
|
11
|
-
- {name: ID, type: string}
|
12
|
-
- {name: VARCHAR2_ITEM, type: string}
|
13
|
-
- {name: NVARCHAR2_ITEM, type: string}
|
14
|
-
- {name: INTEGER_ITEM, type: long}
|
15
|
-
- {name: NUMBER_ITEM, type: string}
|
16
|
-
- {name: DATE_ITEM, type: timestamp, format: '%Y/%m/%d'}
|
17
|
-
- {name: TIMESTAMP_ITEM, type: timestamp, format: '%Y/%m/%d %H:%M:%S'}
|
18
|
-
out:
|
19
|
-
type: oracle
|
20
|
-
host: #host#
|
21
|
-
database: #database#
|
22
|
-
user: #user#
|
23
|
-
password: #password#
|
24
|
-
table: TEST1
|
25
|
-
mode: truncate_insert
|
26
|
-
insert_method: oci
|
27
|
-
#driver_path: driver/ojdbc7.jar
|
@@ -1,26 +0,0 @@
|
|
1
|
-
in:
|
2
|
-
type: file
|
3
|
-
path_prefix: '/oracle/data/test1/test1.csv'
|
4
|
-
parser:
|
5
|
-
charset: UTF-8
|
6
|
-
newline: CRLF
|
7
|
-
type: csv
|
8
|
-
delimiter: ','
|
9
|
-
quote: ''
|
10
|
-
columns:
|
11
|
-
- {name: ID, type: string}
|
12
|
-
- {name: VARCHAR2_ITEM, type: string}
|
13
|
-
- {name: NVARCHAR2_ITEM, type: string}
|
14
|
-
- {name: INTEGER_ITEM, type: long}
|
15
|
-
- {name: NUMBER_ITEM, type: string}
|
16
|
-
- {name: DATE_ITEM, type: timestamp, format: '%Y/%m/%d'}
|
17
|
-
- {name: TIMESTAMP_ITEM, type: timestamp, format: '%Y/%m/%d %H:%M:%S'}
|
18
|
-
out:
|
19
|
-
type: oracle
|
20
|
-
host: #host#
|
21
|
-
database: #database#
|
22
|
-
user: #user#
|
23
|
-
password: #password#
|
24
|
-
table: TEST1
|
25
|
-
mode: truncate_insert
|
26
|
-
#driver_path: driver/ojdbc7.jar
|
@@ -1,25 +0,0 @@
|
|
1
|
-
in:
|
2
|
-
type: file
|
3
|
-
path_prefix: '/oracle/data/test1/test1.csv'
|
4
|
-
parser:
|
5
|
-
charset: UTF-8
|
6
|
-
newline: CRLF
|
7
|
-
type: csv
|
8
|
-
delimiter: ','
|
9
|
-
quote: ''
|
10
|
-
columns:
|
11
|
-
- {name: ID, type: string}
|
12
|
-
- {name: VARCHAR2_ITEM, type: string}
|
13
|
-
- {name: NVARCHAR2_ITEM, type: string}
|
14
|
-
- {name: INTEGER_ITEM, type: long}
|
15
|
-
- {name: NUMBER_ITEM, type: string}
|
16
|
-
- {name: DATE_ITEM, type: timestamp, format: '%Y/%m/%d'}
|
17
|
-
- {name: TIMESTAMP_ITEM, type: timestamp, format: '%Y/%m/%d %H:%M:%S'}
|
18
|
-
out:
|
19
|
-
type: oracle
|
20
|
-
user: #user#
|
21
|
-
password: #password#
|
22
|
-
table: TEST1
|
23
|
-
mode: insert_direct
|
24
|
-
#driver_path: driver/ojdbc7.jar
|
25
|
-
url: jdbc:oracle:thin:@#host#:#port#:#database#
|