embulk-filter-row 0.1.3 → 0.1.4

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 CHANGED
@@ -1,7 +1,7 @@
1
1
  ---
2
2
  SHA1:
3
- metadata.gz: 97c78b3a34a8afc63f95ee20bcba850b6a15e295
4
- data.tar.gz: ccea5b2896f011d3255f1478f43c0f0d83351c94
3
+ metadata.gz: 66c2553beb93fa0ec8460ac8645e62a9e54da8c9
4
+ data.tar.gz: 59bd429b89b936989ff80488b4c9d9caabfb3cf7
5
5
  SHA512:
6
- metadata.gz: dae3cc4e2f87ae47cc36f512671ccbff90e0c4c85ecb566dfec4c277a3b466edee1d9297682579071b93ae8756e4405b31cc005ca16786c63469fbb8a54d35ea
7
- data.tar.gz: 1e5678b637626facf00cb96007cf376cbdbde447ed89def1fc6cbe9d52de21102c88ce48049e3a303ca84aac24bfa615d917651413407594310ace34be05c124
6
+ metadata.gz: cba7c85deadaefe03697785643f9612cb9e67de63895b773a05cff5e059c002731ef0abf096d1d71fbdc3d7bea5372cc56c71db7d572486c302f6e941a02bff1
7
+ data.tar.gz: 6a8d533156ea62bb4273ce9260cfcea67d16f210780b82c53248a82d982b02fbd0b2fca4d562a56d322b43bab2f4f9d196ff8e6a7ce894947eba24cf11c0182d
data/.travis.yml CHANGED
@@ -1,5 +1,7 @@
1
1
  language: java
2
2
  jdk:
3
+ - openjdk7
4
+ - oraclejdk7
3
5
  - oraclejdk8
4
6
  script:
5
7
  - ./gradlew test
data/CHANGELOG.md CHANGED
@@ -1,3 +1,9 @@
1
+ # 0.1.4
2
+
3
+ Fixes:
4
+
5
+ * raise SchemaConfigException if column name is not found
6
+
1
7
  # 0.1.3
2
8
 
3
9
  Fixes:
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.3"
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.6.16"
21
- provided "org.embulk:embulk-core:0.6.16"
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
- #Wed Feb 04 13:46:12 PST 2015
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.2.1-bin.zip
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
- Schema outputSchema = inputSchema;
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.3
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-07-24 00:00:00.000000000 Z
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.3.jar
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