embulk-filter-row 0.1.3 → 0.1.4
Sign up to get free protection for your applications and to get access to all the features.
- checksums.yaml +4 -4
- data/.travis.yml +2 -0
- data/CHANGELOG.md +6 -0
- data/README.md +1 -1
- data/build.gradle +3 -3
- data/example.yml +1 -0
- data/gradle/wrapper/gradle-wrapper.jar +0 -0
- data/gradle/wrapper/gradle-wrapper.properties +2 -2
- data/src/main/java/org/embulk/filter/RowFilterPlugin.java +5 -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: 66c2553beb93fa0ec8460ac8645e62a9e54da8c9
|
4
|
+
data.tar.gz: 59bd429b89b936989ff80488b4c9d9caabfb3cf7
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: cba7c85deadaefe03697785643f9612cb9e67de63895b773a05cff5e059c002731ef0abf096d1d71fbdc3d7bea5372cc56c71db7d572486c302f6e941a02bff1
|
7
|
+
data.tar.gz: 6a8d533156ea62bb4273ce9260cfcea67d16f210780b82c53248a82d982b02fbd0b2fca4d562a56d322b43bab2f4f9d196ff8e6a7ce894947eba24cf11c0182d
|
data/.travis.yml
CHANGED
data/CHANGELOG.md
CHANGED
data/README.md
CHANGED
@@ -30,7 +30,7 @@ A filter plugin for Embulk to filter out rows
|
|
30
30
|
* "IS NOT NULL"
|
31
31
|
* **argument**: argument for the operation (string, required for non-unary operators)
|
32
32
|
* **not**: not (boolean, optional, default: false)
|
33
|
-
* **format**: special option for timestamp column, specify the format of timestamp argument (string, default is `%Y-%m-%d %H:%M:%S.%N %z`)
|
33
|
+
* **format**: special option for timestamp column, specify the format of timestamp argument, parsed argument is compared with the column value as Timestamp object (string, default is `%Y-%m-%d %H:%M:%S.%N %z`)
|
34
34
|
* **timezone**: special option for timestamp column, specify the timezone of timestamp argument (string, default is `UTC`)
|
35
35
|
|
36
36
|
NOTE: column type is automatically retrieved from input data (inputSchema)
|
data/build.gradle
CHANGED
@@ -12,13 +12,13 @@ configurations {
|
|
12
12
|
provided
|
13
13
|
}
|
14
14
|
|
15
|
-
version = "0.1.
|
15
|
+
version = "0.1.4"
|
16
16
|
sourceCompatibility = 1.7
|
17
17
|
targetCompatibility = 1.7
|
18
18
|
|
19
19
|
dependencies {
|
20
|
-
compile "org.embulk:embulk-core:0.
|
21
|
-
provided "org.embulk:embulk-core:0.
|
20
|
+
compile "org.embulk:embulk-core:0.7.0"
|
21
|
+
provided "org.embulk:embulk-core:0.7.0"
|
22
22
|
// compile "YOUR_JAR_DEPENDENCY_GROUP:YOUR_JAR_DEPENDENCY_MODULE:YOUR_JAR_DEPENDENCY_VERSION"
|
23
23
|
testCompile "junit:junit:4.+"
|
24
24
|
}
|
data/example.yml
CHANGED
@@ -33,5 +33,6 @@ filters:
|
|
33
33
|
- {column: score, operator: ">", argument: 2000}
|
34
34
|
- {column: score, operator: "<", argument: 6000}
|
35
35
|
- {column: time, operator: ==, argument: "2015-07-13", format: "%Y-%m-%d"}
|
36
|
+
# - {column: missing, operator: "==", argument: 6000}
|
36
37
|
out:
|
37
38
|
type: stdout
|
Binary file
|
@@ -1,6 +1,6 @@
|
|
1
|
-
#
|
1
|
+
#Mon Aug 10 13:48:48 UTC 2015
|
2
2
|
distributionBase=GRADLE_USER_HOME
|
3
3
|
distributionPath=wrapper/dists
|
4
4
|
zipStoreBase=GRADLE_USER_HOME
|
5
5
|
zipStorePath=wrapper/dists
|
6
|
-
distributionUrl=https\://services.gradle.org/distributions/gradle-2.
|
6
|
+
distributionUrl=https\://services.gradle.org/distributions/gradle-2.6-bin.zip
|
@@ -61,8 +61,12 @@ public class RowFilterPlugin implements FilterPlugin
|
|
61
61
|
{
|
62
62
|
PluginTask task = config.loadConfig(PluginTask.class);
|
63
63
|
|
64
|
-
|
64
|
+
for (ConditionConfig conditionConfig : task.getConditions()) {
|
65
|
+
String columnName = conditionConfig.getColumn();
|
66
|
+
inputSchema.lookupColumn(columnName); // throw SchemaConfigException if not found
|
67
|
+
}
|
65
68
|
|
69
|
+
Schema outputSchema = inputSchema;
|
66
70
|
control.run(task.dump(), outputSchema);
|
67
71
|
}
|
68
72
|
|
metadata
CHANGED
@@ -1,14 +1,14 @@
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
2
2
|
name: embulk-filter-row
|
3
3
|
version: !ruby/object:Gem::Version
|
4
|
-
version: 0.1.
|
4
|
+
version: 0.1.4
|
5
5
|
platform: ruby
|
6
6
|
authors:
|
7
7
|
- Naotoshi Seo
|
8
8
|
autorequire:
|
9
9
|
bindir: bin
|
10
10
|
cert_chain: []
|
11
|
-
date: 2015-
|
11
|
+
date: 2015-11-20 00:00:00.000000000 Z
|
12
12
|
dependencies:
|
13
13
|
- !ruby/object:Gem::Dependency
|
14
14
|
name: bundler
|
@@ -73,7 +73,7 @@ files:
|
|
73
73
|
- src/test/java/org/embulk/filter/row/TestLongCondition.java
|
74
74
|
- src/test/java/org/embulk/filter/row/TestStringCondition.java
|
75
75
|
- src/test/java/org/embulk/filter/row/TestTimestampCondition.java
|
76
|
-
- classpath/embulk-filter-row-0.1.
|
76
|
+
- classpath/embulk-filter-row-0.1.4.jar
|
77
77
|
homepage: https://github.com/sonots/embulk-filter-row
|
78
78
|
licenses:
|
79
79
|
- MIT
|