You are viewing a plain text version of this content. The canonical link for it is here.
Posted to dev@gobblin.apache.org by "Aditya Sharma (JIRA)" <ji...@apache.org> on 2018/06/12 13:48:00 UTC

[jira] [Created] (GOBBLIN-514) AvroUtils#parseSchemaFromFile fails when characters are written with Modified UTF-8 encoding

Aditya Sharma created GOBBLIN-514:
-------------------------------------

             Summary: AvroUtils#parseSchemaFromFile fails when characters are written with Modified UTF-8 encoding
                 Key: GOBBLIN-514
                 URL: https://issues.apache.org/jira/browse/GOBBLIN-514
             Project: Apache Gobblin
          Issue Type: Bug
            Reporter: Aditya Sharma
            Assignee: Aditya Sharma


Schema.Parser()#parse(InputStream) tries to read the bytes with character encoding UTF-8 and fails when data is encoded with modified UTF-8. Reading the schema file with UTF-8 and then converting it to schema should solve this problem.

As a part of [https://github.com/apache/incubator-gobblin/pull/2355] schema is created using Hive Columns, which will be written to the disk using modified UTF-8. When such a file is read using Schema.Parser()#parse(InputStream) it fails.



--
This message was sent by Atlassian JIRA
(v7.6.3#76005)