embulk 0.7.0-java → 0.7.1-java

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: d8c4435b7efc6bed5410df4855329fa2b4a10d2d
4
- data.tar.gz: e6ca52300e459ab476be4d4c63d3e5288a5a4f5d
3
+ metadata.gz: 4caef0e11a979edc6d12dc23d1bc89c4796cf869
4
+ data.tar.gz: 83ca9285638a2de602cae9e21341e8e63ffdfdef
5
5
  SHA512:
6
- metadata.gz: 95e963ff9bb277488d64f17d8d79eed664d3200534508b63d0eb72c9f1cf0ea01643ac2c29a27fb316d9f811368de7ff4f0c235212462c9eba0d3c131423eb5e
7
- data.tar.gz: 7a84fa41e977cc1d9be79d554ba3e8d91b3ce83bc204a9ff51a043ea779ed49eac893e6b442a26fba64fc01c35d48dd582b8072cc086947165f90c99f96dc7b3
6
+ metadata.gz: 9a5a51d2cb2ebeba9ec15892cd70e12595813920906f23478d4ebb88baaf7b497b2bc5a3d6e8faaa08c0e85ff455f158345a59246d0180128b08065d2e956d04
7
+ data.tar.gz: c3409ea3f3c3534c6e70d9b25bbc7ed6a0b3c30c73bddc719d576eea5698246cfec650b7716d373782a3a1befaaf4021e49d24826922abadf82948524a2926ad
@@ -16,7 +16,7 @@ def release_projects = [project(":embulk-core"), project(":embulk-standards")]
16
16
 
17
17
  allprojects {
18
18
  group = 'org.embulk'
19
- version = '0.7.0'
19
+ version = '0.7.1'
20
20
 
21
21
  ext {
22
22
  jrubyVersion = '9.0.0.0'
@@ -2,6 +2,7 @@ package org.embulk.config;
2
2
 
3
3
  public class ConfigException
4
4
  extends RuntimeException
5
+ implements UserDataException
5
6
  {
6
7
  public ConfigException(String message)
7
8
  {
@@ -0,0 +1,4 @@
1
+ package org.embulk.config;
2
+
3
+ public interface UserDataException
4
+ { }
@@ -0,0 +1,17 @@
1
+ package org.embulk.config;
2
+
3
+ public class UserDataExceptions
4
+ {
5
+ private UserDataExceptions() { }
6
+
7
+ public boolean isUserDataException(Throwable exception)
8
+ {
9
+ while (exception != null) {
10
+ if (exception instanceof UserDataException) {
11
+ return true;
12
+ }
13
+ exception = exception.getCause();
14
+ }
15
+ return false;
16
+ }
17
+ }
@@ -0,0 +1,23 @@
1
+ package org.embulk.spi;
2
+
3
+ import org.embulk.config.UserDataException;
4
+
5
+ public class DataException
6
+ extends RuntimeException
7
+ implements UserDataException
8
+ {
9
+ public DataException(String message)
10
+ {
11
+ super(message);
12
+ }
13
+
14
+ public DataException(Throwable cause)
15
+ {
16
+ super(cause);
17
+ }
18
+
19
+ public DataException(String message, Throwable cause)
20
+ {
21
+ super(message, cause);
22
+ }
23
+ }
@@ -1,7 +1,10 @@
1
1
  package org.embulk.spi.time;
2
2
 
3
+ import org.embulk.config.UserDataException;
4
+
3
5
  public class TimestampParseException
4
6
  extends Exception
7
+ implements UserDataException
5
8
  {
6
9
  public TimestampParseException(String message)
7
10
  {
@@ -4,6 +4,7 @@ Release Notes
4
4
  .. toctree::
5
5
  :maxdepth: 1
6
6
 
7
+ release/release-0.7.1
7
8
  release/release-0.7.0
8
9
  release/release-0.6.25
9
10
  release/release-0.6.24
@@ -0,0 +1,22 @@
1
+ Release 0.7.1
2
+ ==================================
3
+
4
+ General Changes
5
+ ------------------
6
+
7
+ * Fixed ``no such file to load`` error when embulk is installed as a single jar file.
8
+
9
+ Java API
10
+ ------------------
11
+
12
+ * Added exception class ``DataException`` and exception tag interface ``UserDataExceptoin``. If those exceptions are thrown, applications are suggested not to retry this bulk load because retried bulk import will fail again unless user's input data is fixed.
13
+
14
+ Ruby API
15
+ ------------------
16
+
17
+ * ``ConfigError`` includes org.embulk.config.UserDataExceptoin interface.
18
+
19
+
20
+ Release Date
21
+ ------------------
22
+ 2015-08-18
@@ -22,6 +22,7 @@ import org.embulk.spi.ParserPlugin;
22
22
  import org.embulk.spi.Exec;
23
23
  import org.embulk.spi.FileInput;
24
24
  import org.embulk.spi.PageOutput;
25
+ import org.embulk.spi.DataException;
25
26
  import org.embulk.spi.util.LineDecoder;
26
27
  import org.embulk.spi.util.Timestamps;
27
28
  import org.slf4j.Logger;
@@ -369,7 +370,7 @@ public class CsvParserPlugin
369
370
  }
370
371
 
371
372
  static class CsvRecordValidateException
372
- extends RuntimeException
373
+ extends DataException
373
374
  {
374
375
  CsvRecordValidateException(Throwable cause)
375
376
  {
@@ -5,6 +5,7 @@ import java.util.List;
5
5
  import java.util.ArrayList;
6
6
  import java.util.Deque;
7
7
  import java.util.ArrayDeque;
8
+ import org.embulk.spi.DataException;
8
9
  import org.embulk.spi.util.LineDecoder;
9
10
 
10
11
  public class CsvTokenizer
@@ -365,7 +366,7 @@ public class CsvTokenizer
365
366
  }
366
367
 
367
368
  public static class InvalidFormatException
368
- extends RuntimeException
369
+ extends DataException
369
370
  {
370
371
  public InvalidFormatException(String message)
371
372
  {
@@ -374,7 +375,7 @@ public class CsvTokenizer
374
375
  }
375
376
 
376
377
  public static class InvalidValueException
377
- extends RuntimeException
378
+ extends DataException
378
379
  {
379
380
  public InvalidValueException(String message)
380
381
  {
@@ -31,7 +31,11 @@ module Embulk
31
31
  if __FILE__.include?("!")
32
32
  # single jar
33
33
  jar, resource = __FILE__.split("!", 2)
34
- require jar
34
+ begin
35
+ require File.expand_path(jar)
36
+ rescue LoadError
37
+ # TODO fails if jar doesn't end with ".rb" or ".jar" but ignorable
38
+ end
35
39
 
36
40
  elsif __FILE__ =~ /^classpath:/
37
41
  # already in classpath
@@ -1,6 +1,15 @@
1
1
 
2
2
  module Embulk
3
+ module UserDataError
4
+ include Java::Config::UserDataException
5
+ end
6
+
3
7
  class ConfigError < StandardError
8
+ include UserDataError
9
+ end
10
+
11
+ class DataError < StandardError
12
+ include UserDataError
4
13
  end
5
14
 
6
15
  class PluginLoadError < StandardError
@@ -1,3 +1,3 @@
1
1
  module Embulk
2
- VERSION = '0.7.0'
2
+ VERSION = '0.7.1'
3
3
  end
metadata CHANGED
@@ -1,7 +1,7 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: embulk
3
3
  version: !ruby/object:Gem::Version
4
- version: 0.7.0
4
+ version: 0.7.1
5
5
  platform: java
6
6
  authors:
7
7
  - Sadayuki Furuhashi
@@ -133,8 +133,8 @@ files:
133
133
  - classpath/bval-jsr303-0.5.jar
134
134
  - classpath/commons-beanutils-core-1.8.3.jar
135
135
  - classpath/commons-lang3-3.1.jar
136
- - classpath/embulk-core-0.7.0.jar
137
- - classpath/embulk-standards-0.7.0.jar
136
+ - classpath/embulk-core-0.7.1.jar
137
+ - classpath/embulk-standards-0.7.1.jar
138
138
  - classpath/guava-18.0.jar
139
139
  - classpath/guice-4.0.jar
140
140
  - classpath/guice-multibindings-4.0.jar
@@ -186,6 +186,8 @@ files:
186
186
  - embulk-core/src/main/java/org/embulk/config/TaskSource.java
187
187
  - embulk-core/src/main/java/org/embulk/config/TaskValidationException.java
188
188
  - embulk-core/src/main/java/org/embulk/config/TaskValidator.java
189
+ - embulk-core/src/main/java/org/embulk/config/UserDataException.java
190
+ - embulk-core/src/main/java/org/embulk/config/UserDataExceptions.java
189
191
  - embulk-core/src/main/java/org/embulk/exec/BulkLoader.java
190
192
  - embulk-core/src/main/java/org/embulk/exec/ExecModule.java
191
193
  - embulk-core/src/main/java/org/embulk/exec/ExecutionInterruptedException.java
@@ -238,6 +240,7 @@ files:
238
240
  - embulk-core/src/main/java/org/embulk/spi/Column.java
239
241
  - embulk-core/src/main/java/org/embulk/spi/ColumnConfig.java
240
242
  - embulk-core/src/main/java/org/embulk/spi/ColumnVisitor.java
243
+ - embulk-core/src/main/java/org/embulk/spi/DataException.java
241
244
  - embulk-core/src/main/java/org/embulk/spi/DecoderPlugin.java
242
245
  - embulk-core/src/main/java/org/embulk/spi/EncoderPlugin.java
243
246
  - embulk-core/src/main/java/org/embulk/spi/Exec.java
@@ -426,6 +429,7 @@ files:
426
429
  - embulk-docs/src/release/release-0.6.8.rst
427
430
  - embulk-docs/src/release/release-0.6.9.rst
428
431
  - embulk-docs/src/release/release-0.7.0.rst
432
+ - embulk-docs/src/release/release-0.7.1.rst
429
433
  - embulk-standards/build.gradle
430
434
  - embulk-standards/src/main/java/org/embulk/standards/CsvFormatterPlugin.java
431
435
  - embulk-standards/src/main/java/org/embulk/standards/CsvParserPlugin.java