embulk-filter-column 0.6.0 → 0.7.0
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 +4 -4
- data/CHANGELOG.md +7 -0
- data/README.md +7 -4
- data/build.gradle +3 -3
- data/src/main/java/org/embulk/filter/column/ColumnVisitorImpl.java +1 -1
- metadata +3 -4
checksums.yaml
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
---
|
2
2
|
SHA1:
|
3
|
-
metadata.gz:
|
4
|
-
data.tar.gz:
|
3
|
+
metadata.gz: 61fa7dfcda11e9f632f50c741bf581ee784d5551
|
4
|
+
data.tar.gz: cb86bfb359565c42513abd5af4830d9894846a18
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: ece076922941fd87c2030b4df3bb14f88cdd689f0f6fdca2923e657395053d4def57e0f9f1151f8b88a43ebb45a49f5461255f3178f5df6671f15af41ab2c67e
|
7
|
+
data.tar.gz: c5bb54d7aeae2e7fe790ac0be822d0f301994f0f412b501987004d7302a38ca5038e50fa9594af847f280e9d7f756da778dd197449c149ed89918e37e1dee361
|
data/CHANGELOG.md
CHANGED
data/README.md
CHANGED
@@ -129,13 +129,16 @@ EXAMPLE:
|
|
129
129
|
* [example/add_columns.yml](example/add_columns.yml)
|
130
130
|
* [example/drop_columns.yml](example/drop_columns.yml)
|
131
131
|
|
132
|
-
|
132
|
+
Following operators of JSONPath are not supported:
|
133
133
|
|
134
|
-
|
134
|
+
* Multiple properties such as `['name','name']`
|
135
|
+
* Multiple array indexes such as `[1,2]`
|
136
|
+
* Array slice such as `[1:2]`
|
137
|
+
* Filter expression such as `[?(<expression>)]`
|
135
138
|
|
136
|
-
|
139
|
+
Note that `type: timesatmp` for `add_columns` or `columns` is not available because Embulk's `type: json` cannot have timestamp column inside.
|
137
140
|
|
138
|
-
|
141
|
+
Also note that renameing or copying of json paths by `src` option is only partially supported yet. The parent json path must be same like:
|
139
142
|
|
140
143
|
```
|
141
144
|
- {name: $.payload.foo.dest, src: $.payload.foo.src}
|
data/build.gradle
CHANGED
@@ -15,13 +15,13 @@ configurations {
|
|
15
15
|
provided
|
16
16
|
}
|
17
17
|
|
18
|
-
version = "0.
|
18
|
+
version = "0.7.0"
|
19
19
|
sourceCompatibility = 1.7
|
20
20
|
targetCompatibility = 1.7
|
21
21
|
|
22
22
|
dependencies {
|
23
|
-
compile "org.embulk:embulk-core:0.8
|
24
|
-
provided "org.embulk:embulk-core:0.8
|
23
|
+
compile "org.embulk:embulk-core:0.8.29+"
|
24
|
+
provided "org.embulk:embulk-core:0.8.29+"
|
25
25
|
compile "io.github.medjed:JsonPathCompiler:0.0.12"
|
26
26
|
|
27
27
|
testCompile "junit:junit:4.+"
|
@@ -151,7 +151,7 @@ public class ColumnVisitorImpl implements ColumnVisitor
|
|
151
151
|
String time = (String) columnConfig.getDefault().get();
|
152
152
|
String format = columnConfig.getFormat().or(task.getDefaultTimestampFormat());
|
153
153
|
DateTimeZone timezone = columnConfig.getTimeZone().or(task.getDefaultTimeZone());
|
154
|
-
TimestampParser parser = new TimestampParser(
|
154
|
+
TimestampParser parser = new TimestampParser(format, timezone);
|
155
155
|
try {
|
156
156
|
Timestamp defaultValue = parser.parse(time);
|
157
157
|
return defaultValue;
|
metadata
CHANGED
@@ -1,14 +1,14 @@
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
2
2
|
name: embulk-filter-column
|
3
3
|
version: !ruby/object:Gem::Version
|
4
|
-
version: 0.
|
4
|
+
version: 0.7.0
|
5
5
|
platform: ruby
|
6
6
|
authors:
|
7
7
|
- Naotoshi Seo
|
8
8
|
autorequire:
|
9
9
|
bindir: bin
|
10
10
|
cert_chain: []
|
11
|
-
date:
|
11
|
+
date: 2017-08-24 00:00:00.000000000 Z
|
12
12
|
dependencies:
|
13
13
|
- !ruby/object:Gem::Dependency
|
14
14
|
name: bundler
|
@@ -81,8 +81,7 @@ files:
|
|
81
81
|
- src/test/java/org/embulk/filter/column/TestJsonVisitor.java
|
82
82
|
- classpath/accessors-smart-1.1.jar
|
83
83
|
- classpath/asm-5.0.3.jar
|
84
|
-
- classpath/
|
85
|
-
- classpath/embulk-filter-column-0.6.0.jar
|
84
|
+
- classpath/embulk-filter-column-0.7.0.jar
|
86
85
|
- classpath/json-smart-2.2.1.jar
|
87
86
|
- classpath/JsonPathCompiler-0.0.12.jar
|
88
87
|
- classpath/slf4j-api-1.7.21.jar
|