LoginSignup
0
0

More than 3 years have passed since last update.

Embulkのconfig項目で真偽値を使用しようとしたら「Caused by: org.jruby.exceptions.RaiseException: (ArgumentError) Unknown type "boolean"」が出た場合

Last updated at Posted at 2019-09-19

結論

booleanの記述が誤っている。正しくはboolとすべき。

      def self.transaction(config, &control)
        # configuration code:
        task = {
          "dir" => config.param("dir", :string, default: "."),                     # integer, required
          "recurse" => config.param("recurse", :boolean, default: false)
        }

      def self.transaction(config, &control)
        # configuration code:
        task = {
          "dir" => config.param("dir", :string, default: "."),                     # integer, required
          "recurse" => config.param("recurse", :bool, default: false)
        }
0
0
1

Register as a new user and use Qiita more conveniently

  1. You get articles that match your needs
  2. You can efficiently read back useful information
  3. You can use dark theme
What you can do with signing up
0
0