You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@avro.apache.org by dk...@apache.org on 2018/12/20 21:01:38 UTC

[avro] branch revert-403-fix_read_map_with_schema created (now 6af58e9)

This is an automated email from the ASF dual-hosted git repository.

dkulp pushed a change to branch revert-403-fix_read_map_with_schema
in repository https://gitbox.apache.org/repos/asf/avro.git.


      at 6af58e9  Revert "[FIX] Support applying default null when map exists in schema and not in encoded data (#403)"

This branch includes the following new commits:

     new 6af58e9  Revert "[FIX] Support applying default null when map exists in schema and not in encoded data (#403)"

The 1 revisions listed above as "new" are entirely new to this
repository and will be described in separate emails.  The revisions
listed as "add" were already present in the repository and have only
been added to this reference.



[avro] 01/01: Revert "[FIX] Support applying default null when map exists in schema and not in encoded data (#403)"

Posted by dk...@apache.org.
This is an automated email from the ASF dual-hosted git repository.

dkulp pushed a commit to branch revert-403-fix_read_map_with_schema
in repository https://gitbox.apache.org/repos/asf/avro.git

commit 6af58e9a9e8419976143a40583ea20debf73e056
Author: Daniel Kulp <da...@kulp.com>
AuthorDate: Thu Dec 20 16:01:34 2018 -0500

    Revert "[FIX] Support applying default null when map exists in schema and not in encoded data (#403)"
    
    This reverts commit a18b35e7d284ecd50c353a93e2ac56894b4ff885.
---
 lang/ruby/lib/avro/schema.rb | 1 -
 1 file changed, 1 deletion(-)

diff --git a/lang/ruby/lib/avro/schema.rb b/lang/ruby/lib/avro/schema.rb
index e77ec43..8e345e3 100644
--- a/lang/ruby/lib/avro/schema.rb
+++ b/lang/ruby/lib/avro/schema.rb
@@ -115,7 +115,6 @@ module Avro
         datum.is_a?(Array) &&
           datum.all?{|d| validate(expected_schema.items, d) }
       when :map
-        datum.is_a?(Hash) &&
           datum.keys.all?{|k| k.is_a? String } &&
           datum.values.all?{|v| validate(expected_schema.values, v) }
       when :union