embulk-filter-timestamp_format 0.1.2 → 0.1.3
Sign up to get free protection for your applications and to get access to all the features.
- checksums.yaml +4 -4
- data/CHANGELOG.md +6 -0
- data/README.md +1 -0
- data/build.gradle +3 -3
- data/lib/embulk/filter/timestamp_format.rb +1 -1
- data/src/main/java/org/embulk/filter/{TimestampFormatFilterPlugin.java → timestamp_format/TimestampFormatFilterPlugin.java} +1 -4
- data/src/main/java/org/embulk/filter/timestamp_format/TimestampFormatter.java +1 -1
- data/src/main/java/org/embulk/filter/timestamp_format/TimestampParser.java +2 -1
- metadata +3 -3
checksums.yaml
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
---
|
2
2
|
SHA1:
|
3
|
-
metadata.gz:
|
4
|
-
data.tar.gz:
|
3
|
+
metadata.gz: be780d125aec2895adeb29b5ad8c72b162754af0
|
4
|
+
data.tar.gz: 90f80ea70803e93ced774fff8782e1af682a9ad9
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: dc5533f44205927a35fa49662e47c3f8a1b8e6c5a8454cf1addced763403e54e1423c908b39b1372d330d849a8d1c89b85936798d353beae3f239228d632657a
|
7
|
+
data.tar.gz: d3f76d6fff16fc7d6051bc5005ee0aa7f68b6523ad277442631662f48b8b6cd5ff0256739ef3c39602ba64a3670b278e8713dbdde829b2859982d93e7a3de612
|
data/CHANGELOG.md
CHANGED
data/README.md
CHANGED
@@ -16,6 +16,7 @@ A filter plugin for Embulk to change timesatmp format
|
|
16
16
|
- **default_from_timezone**: default timezone for the input timestamp columns (string, default is `UTC`)
|
17
17
|
- **default_to_format**: default timestamp format for the output timestamp columns (string, default is `%Y-%m-%d %H:%M:%S.%N %z`)
|
18
18
|
- **default_to_timezone**: default timezone for the output timestamp olumns (string, default is `UTC`)
|
19
|
+
* **stop_on_invalid_record**: stop bulk load transaction if a invalid record is found (boolean, default is `false)
|
19
20
|
|
20
21
|
## Example
|
21
22
|
|
data/build.gradle
CHANGED
@@ -13,13 +13,13 @@ configurations {
|
|
13
13
|
provided
|
14
14
|
}
|
15
15
|
|
16
|
-
version = "0.1.
|
16
|
+
version = "0.1.3"
|
17
17
|
sourceCompatibility = 1.7
|
18
18
|
targetCompatibility = 1.7
|
19
19
|
|
20
20
|
dependencies {
|
21
|
-
compile "org.embulk:embulk-core:0.8
|
22
|
-
provided "org.embulk:embulk-core:0.8
|
21
|
+
compile "org.embulk:embulk-core:0.8.+"
|
22
|
+
provided "org.embulk:embulk-core:0.8.+"
|
23
23
|
// compile "YOUR_JAR_DEPENDENCY_GROUP:YOUR_JAR_DEPENDENCY_MODULE:YOUR_JAR_DEPENDENCY_VERSION"
|
24
24
|
testCompile "junit:junit:4.+"
|
25
25
|
}
|
@@ -1,4 +1,4 @@
|
|
1
|
-
package org.embulk.filter;
|
1
|
+
package org.embulk.filter.timestamp_format;
|
2
2
|
|
3
3
|
import com.google.common.base.Throwables;
|
4
4
|
|
@@ -10,9 +10,6 @@ import org.embulk.config.ConfigSource;
|
|
10
10
|
import org.embulk.config.Task;
|
11
11
|
import org.embulk.config.TaskSource;
|
12
12
|
|
13
|
-
import org.embulk.filter.timestamp_format.TimestampFormatter;
|
14
|
-
import org.embulk.filter.timestamp_format.TimestampParser;
|
15
|
-
|
16
13
|
import org.embulk.spi.Column;
|
17
14
|
import org.embulk.spi.ColumnVisitor;
|
18
15
|
import org.embulk.spi.Exec;
|
@@ -5,7 +5,7 @@ import com.google.common.base.Optional;
|
|
5
5
|
import org.embulk.config.Config;
|
6
6
|
import org.embulk.config.ConfigDefault;
|
7
7
|
|
8
|
-
import org.embulk.filter.TimestampFormatFilterPlugin.PluginTask;
|
8
|
+
import org.embulk.filter.timestamp_format.TimestampFormatFilterPlugin.PluginTask;
|
9
9
|
|
10
10
|
import org.embulk.spi.time.Timestamp;
|
11
11
|
import org.embulk.spi.util.LineEncoder;
|
@@ -5,7 +5,7 @@ import com.google.common.base.Optional;
|
|
5
5
|
import org.embulk.config.Config;
|
6
6
|
import org.embulk.config.ConfigDefault;
|
7
7
|
|
8
|
-
import org.embulk.filter.TimestampFormatFilterPlugin.PluginTask;
|
8
|
+
import org.embulk.filter.timestamp_format.TimestampFormatFilterPlugin.PluginTask;
|
9
9
|
|
10
10
|
import org.embulk.spi.time.JRubyTimeParserHelper;
|
11
11
|
import org.embulk.spi.time.JRubyTimeParserHelperFactory;
|
@@ -86,6 +86,7 @@ public class TimestampParser
|
|
86
86
|
helper = h;
|
87
87
|
try {
|
88
88
|
localUsec = helper.strptimeUsec(text);
|
89
|
+
break;
|
89
90
|
}
|
90
91
|
catch (TimestampParseException ex) {
|
91
92
|
exception = ex;
|
metadata
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
2
2
|
name: embulk-filter-timestamp_format
|
3
3
|
version: !ruby/object:Gem::Version
|
4
|
-
version: 0.1.
|
4
|
+
version: 0.1.3
|
5
5
|
platform: ruby
|
6
6
|
authors:
|
7
7
|
- Naotoshi Seo
|
@@ -73,11 +73,11 @@ files:
|
|
73
73
|
- gradlew
|
74
74
|
- gradlew.bat
|
75
75
|
- lib/embulk/filter/timestamp_format.rb
|
76
|
-
- src/main/java/org/embulk/filter/TimestampFormatFilterPlugin.java
|
76
|
+
- src/main/java/org/embulk/filter/timestamp_format/TimestampFormatFilterPlugin.java
|
77
77
|
- src/main/java/org/embulk/filter/timestamp_format/TimestampFormatter.java
|
78
78
|
- src/main/java/org/embulk/filter/timestamp_format/TimestampParser.java
|
79
79
|
- src/test/java/org/embulk/filter/TestTimestampFormatFilterPlugin.java
|
80
|
-
- classpath/embulk-filter-timestamp_format-0.1.
|
80
|
+
- classpath/embulk-filter-timestamp_format-0.1.3.jar
|
81
81
|
homepage: https://github.com/sonots/embulk-filter-timestamp_format
|
82
82
|
licenses:
|
83
83
|
- MIT
|