embulk-input-presto 0.2.3 → 0.2.4

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: cf2784781a44b5265014eace0020def1d4f51902
4
- data.tar.gz: e8a32d8efbdb4381e6c5ac84e7667d1dd7c0e447
3
+ metadata.gz: 2d7705a889097a41994287f7b932a2995ecd4cc9
4
+ data.tar.gz: de5c74348510efda0511b469ff187d980257111b
5
5
  SHA512:
6
- metadata.gz: c17a53488dbe9f8a7b74a2a06c3b0ac8c7b39890593a330948453a570613581ee676155822bd148839a073a1af04c82ee660d870d0e7d4b9343c1cee2b3916a7
7
- data.tar.gz: b401633301c09d4384cecb359d0e9ddef2d23b563da00d8cea65dc9489a946d185a94706bfefd52753bcab130659264b8b73eef6e9cc5802de7cc7c42f6f79f8
6
+ metadata.gz: 3794381a079a877d77502ebb60520713ef9cfc20c7e17cccffc0f2ad99680f5c694f9c9044fc12469de6d609da4694e535c734010cb51ad74046e9486e52194e
7
+ data.tar.gz: 10ccafd83385cc078282ada02ab184013124b3aa36bd26526383cbd2b5429bda8a46cce171ad7b9f9341ed2cc75dd2d7cb08b781e74e43b4dbeaf5b579847f06
@@ -1,7 +1,7 @@
1
1
 
2
2
  Gem::Specification.new do |spec|
3
3
  spec.name = "embulk-input-presto"
4
- spec.version = "0.2.3"
4
+ spec.version = "0.2.4"
5
5
  spec.authors = ["toyama0919"]
6
6
  spec.summary = "Facebook Presto input plugin for Embulk"
7
7
  spec.description = "Facebook Presto input plugin for Embulk."
@@ -18,6 +18,8 @@ module Embulk
18
18
  when :boolean
19
19
  if value.is_a?(TrueClass) || value.is_a?(FalseClass)
20
20
  value
21
+ elsif value.class == Fixnum
22
+ value == 0 ? false : true
21
23
  else
22
24
  downcased_val = value.downcase
23
25
  case downcased_val
@@ -40,6 +42,8 @@ module Embulk
40
42
  def self.get_type(type)
41
43
  if type.start_with?("boolean")
42
44
  :boolean
45
+ elsif type.start_with?("tinyint")
46
+ :boolean
43
47
  elsif type.start_with?("bigint")
44
48
  :long
45
49
  elsif type.start_with?("integer")
metadata CHANGED
@@ -1,14 +1,14 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: embulk-input-presto
3
3
  version: !ruby/object:Gem::Version
4
- version: 0.2.3
4
+ version: 0.2.4
5
5
  platform: ruby
6
6
  authors:
7
7
  - toyama0919
8
8
  autorequire:
9
9
  bindir: bin
10
10
  cert_chain: []
11
- date: 2016-10-17 00:00:00.000000000 Z
11
+ date: 2016-11-25 00:00:00.000000000 Z
12
12
  dependencies:
13
13
  - !ruby/object:Gem::Dependency
14
14
  requirement: !ruby/object:Gem::Requirement