embulk 0.8.11-java → 0.8.12-java
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/build.gradle +1 -1
- data/classpath/{embulk-cli-0.8.11.jar → embulk-cli-0.8.12.jar} +0 -0
- data/classpath/{embulk-core-0.8.11.jar → embulk-core-0.8.12.jar} +0 -0
- data/classpath/{embulk-standards-0.8.11.jar → embulk-standards-0.8.12.jar} +0 -0
- data/embulk-docs/src/built-in.rst +12 -0
- data/embulk-docs/src/customization.rst +1 -1
- data/embulk-docs/src/release/release-0.8.12.rst +12 -0
- data/embulk-docs/src/release.rst +1 -0
- data/lib/embulk/guess/schema_guess.rb +1 -0
- data/lib/embulk/version.rb +1 -1
- data/test/guess/test_schema_guess.rb +18 -0
- metadata +6 -5
checksums.yaml
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
---
|
2
2
|
SHA1:
|
3
|
-
metadata.gz:
|
4
|
-
data.tar.gz:
|
3
|
+
metadata.gz: c15039e117b4192fb6b0dcd6500d5caa79dc6702
|
4
|
+
data.tar.gz: 841d7f3ba142b9188e17efcd3b7932438c77c6d2
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: 7c46809c7a1cbc30f330794662b60d4733f566df2c0595f1ebe9df7eb0c1062195093801b88fe1c0912ea3bdc897307f86461c73a1a9bbe5a362e36288e5dafd
|
7
|
+
data.tar.gz: e015e581da6a18127dff42cae052b1c33b2512e1891d3a13b8dfb320eb00ebbabba2dce51a0525d53ac06372949dc0aa1a5d0f75210ae7bd6ea6b4e32e86de76
|
data/build.gradle
CHANGED
Binary file
|
Binary file
|
Binary file
|
@@ -256,6 +256,18 @@ List of types:
|
|
256
256
|
| string | Strings |
|
257
257
|
+-------------+----------------------------------------------+
|
258
258
|
|
259
|
+
The ``null_string`` option converts certain values to NULL. Values will be converted as following:
|
260
|
+
|
261
|
+
+---------------------------------+-------------------------+--------------------------+----------------+--------------------+
|
262
|
+
| | non-quoted empty string | quoted empty string ("") | non-quoted \\N | quoted \\N ("\\N") |
|
263
|
+
+=================================+=========================+==========================+================+====================+
|
264
|
+
| ``null_string: ""`` | NULL | NULL | ``\N`` | ``\N`` |
|
265
|
+
+---------------------------------+-------------------------+--------------------------+----------------+--------------------+
|
266
|
+
| ``null_string: \N`` | (empty string) | (empty string) | NULL | NULL |
|
267
|
+
+---------------------------------+-------------------------+--------------------------+----------------+--------------------+
|
268
|
+
| ``null_string: null`` (default) | NULL | (empty string) | ``\N`` | ``\N`` |
|
269
|
+
+---------------------------------+-------------------------+--------------------------+----------------+--------------------+
|
270
|
+
|
259
271
|
You can use ``guess`` to automatically generate the column settings. See also `Quick Start <https://github.com/embulk/embulk#quick-start>`_.
|
260
272
|
|
261
273
|
Example
|
@@ -47,7 +47,7 @@ Type description example
|
|
47
47
|
**ruby-output** Ruby record output plugin ``mysql``
|
48
48
|
**ruby-filter** Ruby record filter plugin ``add-hostname``
|
49
49
|
**ruby-parser** Ruby file parser plugin ``csv``
|
50
|
-
**ruby-formatter** Ruby file formatter plugin ``csv
|
50
|
+
**ruby-formatter** Ruby file formatter plugin ``csv``
|
51
51
|
==================== =============================== =================
|
52
52
|
|
53
53
|
For example, if you want to parse a new file format using Java, type this command:
|
@@ -0,0 +1,12 @@
|
|
1
|
+
Release 0.8.12
|
2
|
+
==================================
|
3
|
+
|
4
|
+
General Changes
|
5
|
+
------------------
|
6
|
+
|
7
|
+
* Improved guessing so that type of a column to long if the column includes integers and timestmap-looking integers. It was guessed as string before.
|
8
|
+
|
9
|
+
|
10
|
+
Release Date
|
11
|
+
------------------
|
12
|
+
2016-08-03
|
data/embulk-docs/src/release.rst
CHANGED
data/lib/embulk/version.rb
CHANGED
@@ -4,8 +4,26 @@ require 'embulk/guess/schema_guess'
|
|
4
4
|
|
5
5
|
class SchemaGuessTest < ::Test::Unit::TestCase
|
6
6
|
G = Embulk::Guess::SchemaGuess
|
7
|
+
C = Embulk::Column
|
7
8
|
|
8
9
|
def test_guess
|
9
10
|
G.from_hash_records([{"int" => "1", "str" => "a"}])
|
10
11
|
end
|
12
|
+
|
13
|
+
def test_coalesce
|
14
|
+
assert_equal(
|
15
|
+
[C.new(0, "a", :timestamp, "%Y%m%d")],
|
16
|
+
G.from_hash_records([
|
17
|
+
{"a" => "20160101"},
|
18
|
+
{"a" => "20160101"},
|
19
|
+
]))
|
20
|
+
|
21
|
+
assert_equal(
|
22
|
+
[C.new(0, "a", :long)],
|
23
|
+
G.from_hash_records([
|
24
|
+
{"a" => "20160101"},
|
25
|
+
{"a" => "20160101"},
|
26
|
+
{"a" => "12345678"},
|
27
|
+
]))
|
28
|
+
end
|
11
29
|
end
|
metadata
CHANGED
@@ -1,14 +1,14 @@
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
2
2
|
name: embulk
|
3
3
|
version: !ruby/object:Gem::Version
|
4
|
-
version: 0.8.
|
4
|
+
version: 0.8.12
|
5
5
|
platform: java
|
6
6
|
authors:
|
7
7
|
- Sadayuki Furuhashi
|
8
8
|
autorequire:
|
9
9
|
bindir: bin
|
10
10
|
cert_chain: []
|
11
|
-
date: 2016-
|
11
|
+
date: 2016-08-03 00:00:00.000000000 Z
|
12
12
|
dependencies:
|
13
13
|
- !ruby/object:Gem::Dependency
|
14
14
|
requirement: !ruby/object:Gem::Requirement
|
@@ -148,9 +148,9 @@ files:
|
|
148
148
|
- classpath/commons-beanutils-core-1.8.3.jar
|
149
149
|
- classpath/commons-compress-1.10.jar
|
150
150
|
- classpath/commons-lang3-3.1.jar
|
151
|
-
- classpath/embulk-cli-0.8.
|
152
|
-
- classpath/embulk-core-0.8.
|
153
|
-
- classpath/embulk-standards-0.8.
|
151
|
+
- classpath/embulk-cli-0.8.12.jar
|
152
|
+
- classpath/embulk-core-0.8.12.jar
|
153
|
+
- classpath/embulk-standards-0.8.12.jar
|
154
154
|
- classpath/guava-18.0.jar
|
155
155
|
- classpath/guice-4.0.jar
|
156
156
|
- classpath/guice-bootstrap-0.1.1.jar
|
@@ -465,6 +465,7 @@ files:
|
|
465
465
|
- embulk-docs/src/release/release-0.8.1.rst
|
466
466
|
- embulk-docs/src/release/release-0.8.10.rst
|
467
467
|
- embulk-docs/src/release/release-0.8.11.rst
|
468
|
+
- embulk-docs/src/release/release-0.8.12.rst
|
468
469
|
- embulk-docs/src/release/release-0.8.2.rst
|
469
470
|
- embulk-docs/src/release/release-0.8.3.rst
|
470
471
|
- embulk-docs/src/release/release-0.8.4.rst
|