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 CHANGED
@@ -1,7 +1,7 @@
1
1
  ---
2
2
  SHA1:
3
- metadata.gz: 78e67052219cf2ff3381c89b23f314796a4a9bc1
4
- data.tar.gz: 797e290bdf936f6e37b25f3a14554cd9fd27733b
3
+ metadata.gz: c15039e117b4192fb6b0dcd6500d5caa79dc6702
4
+ data.tar.gz: 841d7f3ba142b9188e17efcd3b7932438c77c6d2
5
5
  SHA512:
6
- metadata.gz: c31ddfac5a13f7220f27c2ced42981da75da226092282e560daf774e207fe809b6d9dc78feba4c6e7e2aae344c0fd1fb7dece93c221a2d6be47668da18f20949
7
- data.tar.gz: a868a8d27d8872c01d2a18bcc4d0322d12ce39d96e9613e8ac6dae5ddb7ca01ef2703e88c1380286d13387f3b2263212e5de898e1fd0642f389d20a64bbfdbcd
6
+ metadata.gz: 7c46809c7a1cbc30f330794662b60d4733f566df2c0595f1ebe9df7eb0c1062195093801b88fe1c0912ea3bdc897307f86461c73a1a9bbe5a362e36288e5dafd
7
+ data.tar.gz: e015e581da6a18127dff42cae052b1c33b2512e1891d3a13b8dfb320eb00ebbabba2dce51a0525d53ac06372949dc0aa1a5d0f75210ae7bd6ea6b4e32e86de76
data/build.gradle CHANGED
@@ -16,7 +16,7 @@ def release_projects = [project(":embulk-core"), project(":embulk-standards")]
16
16
 
17
17
  allprojects {
18
18
  group = 'org.embulk'
19
- version = '0.8.11'
19
+ version = '0.8.12'
20
20
 
21
21
  ext {
22
22
  jrubyVersion = '9.1.2.0'
@@ -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
@@ -4,6 +4,7 @@ Release Notes
4
4
  .. toctree::
5
5
  :maxdepth: 1
6
6
 
7
+ release/release-0.8.12
7
8
  release/release-0.8.11
8
9
  release/release-0.8.10
9
10
  release/release-0.8.9
@@ -111,6 +111,7 @@ module Embulk::Guess
111
111
  TYPE_COALESCE = Hash[{
112
112
  long: :double,
113
113
  boolean: :long,
114
+ timestamp: :long, # TimeFormatGuess matches with digits without delimiters
114
115
  }.map {|k,v|
115
116
  [[k.to_s, v.to_s].sort, v.to_s]
116
117
  }]
@@ -1,3 +1,3 @@
1
1
  module Embulk
2
- VERSION = '0.8.11'
2
+ VERSION = '0.8.12'
3
3
  end
@@ -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.11
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-07-26 00:00:00.000000000 Z
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.11.jar
152
- - classpath/embulk-core-0.8.11.jar
153
- - classpath/embulk-standards-0.8.11.jar
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