Peter Lin created AVRO-2901:
-------------------------------
Summary: avro-tools produces invalid file in windows10 powershell
Key: AVRO-2901
URL: https://issues.apache.org/jira/browse/AVRO-2901
Project: Apache Avro
Issue Type: Bug
Components: java
Affects Versions: 1.9.2
Environment: windows10 powershell
JDK1.8 and 14
CentOS 6
jdk 14
Reporter: Peter Lin
example json
------------
{"first":"joe","last":"cohen","birthdate":"1945-03-21","gender":"male","occupation":"writer"}
{"first":"jane","last":"doe","birthdate":"1956-07-21","gender":"female","occupation":"md"}
{"first":"michael","last":"smith","birthdate":"1970-04-20","gender":"male","occupation":"mechanic"}
{"first":"marry","last":"howard","birthdate":"1984-01-21","gender":"female","occupation":"actress"}
example schema
-------------
{
"name": "people",
"type": "record",
"namespace": "ingestion",
"fields": [
{
"name": "first",
"type": "string"
},
{
"name": "last",
"type": "string"
},
{
"name": "birthdate",
"type": "string"
},
{
"name": "gender",
"type": "string"
},
{
"name": "occupation",
"type": "string"
}
]
}
When I run avro-tools fromjson --schema-file people.avsc people.json >
people.avro in windows10 powershell, it generates invalid data.
When I run the same command on linux, it works fine and produces valid avro
data file
--
This message was sent by Atlassian Jira
(v8.3.4#803005)