embulk-filter-query_string 0.1.1 → 0.1.2
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:
|
4
|
-
data.tar.gz:
|
3
|
+
metadata.gz: 3221e8d17d5faad744c2fdc722adfccb54f871c5
|
4
|
+
data.tar.gz: a9c510e70a6ef266615b118690aa9c821dae488e
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: 89607dde6b53d17258c9c6ce587f1b1e3604608c1f1d8a5c9de5074595a2ca8e8053a780b489bfb219f126fa91c9727f5985395fb81a812e6e395835891ca6d2
|
7
|
+
data.tar.gz: e0c5d54b140e0518f7ee3f1d85c41403ad144cb10dfe888a0581be5e7cb9c401d9a6e81299c919023a1938cd31f2192fe14a7cc9f9084fc7ddb257bd25ea0432
|
data/build.gradle
CHANGED
@@ -79,7 +79,7 @@ task gemspec {
|
|
79
79
|
gemspecFile.write($/
|
80
80
|
Gem::Specification.new do |spec|
|
81
81
|
spec.name = "embulk-filter-query_string"
|
82
|
-
spec.version = "0.1.
|
82
|
+
spec.version = "0.1.2"
|
83
83
|
spec.authors = ["Minnano Wedding Co., Ltd."]
|
84
84
|
spec.summary = %[Query String filter plugin for Embulk]
|
85
85
|
spec.description = %[The query string filter plugin parses the column contents as query string and insert columns from that field.]
|
@@ -172,10 +172,15 @@ public class QueryStringFilterPlugin
|
|
172
172
|
|
173
173
|
for (Column inputColumn : inputSchema.getColumns()) {
|
174
174
|
if (columnName.equals(inputColumn.getName())) {
|
175
|
-
String path =
|
175
|
+
String path = null;
|
176
|
+
int pos = -1;
|
176
177
|
|
177
|
-
|
178
|
-
|
178
|
+
if (!reader.isNull(inputColumn)) {
|
179
|
+
path = reader.getString(inputColumn);
|
180
|
+
pos = path.indexOf('?');
|
181
|
+
}
|
182
|
+
|
183
|
+
if (path != null && pos > 0) {
|
179
184
|
String queryString = path.substring(pos + 1);
|
180
185
|
|
181
186
|
Map<String, Object> map = new HashMap<>();
|
metadata
CHANGED
@@ -1,14 +1,14 @@
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
2
2
|
name: embulk-filter-query_string
|
3
3
|
version: !ruby/object:Gem::Version
|
4
|
-
version: 0.1.
|
4
|
+
version: 0.1.2
|
5
5
|
platform: ruby
|
6
6
|
authors:
|
7
7
|
- Minnano Wedding Co., Ltd.
|
8
8
|
autorequire:
|
9
9
|
bindir: bin
|
10
10
|
cert_chain: []
|
11
|
-
date: 2016-03-
|
11
|
+
date: 2016-03-11 00:00:00.000000000 Z
|
12
12
|
dependencies:
|
13
13
|
- !ruby/object:Gem::Dependency
|
14
14
|
requirement: !ruby/object:Gem::Requirement
|