{"action":"created","issue":{"url":"https://api.github.com/repos/linkedin/goavro/issues/119","repository_url":"https://api.github.com/repos/linkedin/goavro","labels_url":"https://api.github.com/repos/linkedin/goavro/issues/119/labels{/name}","comments_url":"https://api.github.com/repos/linkedin/goavro/issues/119/comments","events_url":"https://api.github.com/repos/linkedin/goavro/issues/119/events","html_url":"https://github.com/linkedin/goavro/issues/119","id":344066564,"node_id":"MDU6SXNzdWUzNDQwNjY1NjQ=","number":119,"title":"Default value of floats and doubles are cast into integers","user":{"login":"Yopi","id":641248,"node_id":"MDQ6VXNlcjY0MTI0OA==","avatar_url":"https://avatars0.githubusercontent.com/u/641248?v=4","gravatar_id":"","url":"https://api.github.com/users/Yopi","html_url":"https://github.com/Yopi","followers_url":"https://api.github.com/users/Yopi/followers","following_url":"https://api.github.com/users/Yopi/following{/other_user}","gists_url":"https://api.github.com/users/Yopi/gists{/gist_id}","starred_url":"https://api.github.com/users/Yopi/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/Yopi/subscriptions","organizations_url":"https://api.github.com/users/Yopi/orgs","repos_url":"https://api.github.com/users/Yopi/repos","events_url":"https://api.github.com/users/Yopi/events{/privacy}","received_events_url":"https://api.github.com/users/Yopi/received_events","type":"User","site_admin":false},"labels":[],"state":"open","locked":false,"assignee":null,"assignees":[],"milestone":null,"comments":1,"created_at":"2018-07-24T14:36:46Z","updated_at":"2018-07-31T09:12:18Z","closed_at":null,"author_association":"NONE","body":"I have an issue where I have a default value of a float (`0.0`) but that gets cast into `0` as the default value. This is no problem for `avro-tools` but Google's `bq` importer breaks due to it.\r\n\r\nExample Schema:\r\n```\r\n{\r\n    \"type\": \"record\",\r\n    \"name\": \"ExampleTable\",\r\n    \"fields\": [\r\n        {\"name\": \"doubletrouble, \"type\": \"double\", \"default\": 0.0}\r\n    ]\r\n}\r\n```\r\n\r\nLogged codec:\r\n```\r\n&{0xc4203461e0 {\"fields\":[{\"default\":0,\"name\":\"doubletrouble\",\"type\":\"double\"}],\"name\":\"ExampleTable\",\"type\":\"record\"} 0x147f2c0 0x147e9a0 0x147ef20 0x147f7d0}\r\n```\r\n"},"comment":{"url":"https://api.github.com/repos/linkedin/goavro/issues/comments/409152193","html_url":"https://github.com/linkedin/goavro/issues/119#issuecomment-409152193","issue_url":"https://api.github.com/repos/linkedin/goavro/issues/119","id":409152193,"node_id":"MDEyOklzc3VlQ29tbWVudDQwOTE1MjE5Mw==","user":{"login":"Yopi","id":641248,"node_id":"MDQ6VXNlcjY0MTI0OA==","avatar_url":"https://avatars0.githubusercontent.com/u/641248?v=4","gravatar_id":"","url":"https://api.github.com/users/Yopi","html_url":"https://github.com/Yopi","followers_url":"https://api.github.com/users/Yopi/followers","following_url":"https://api.github.com/users/Yopi/following{/other_user}","gists_url":"https://api.github.com/users/Yopi/gists{/gist_id}","starred_url":"https://api.github.com/users/Yopi/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/Yopi/subscriptions","organizations_url":"https://api.github.com/users/Yopi/orgs","repos_url":"https://api.github.com/users/Yopi/repos","events_url":"https://api.github.com/users/Yopi/events{/privacy}","received_events_url":"https://api.github.com/users/Yopi/received_events","type":"User","site_admin":false},"created_at":"2018-07-31T09:12:18Z","updated_at":"2018-07-31T09:12:18Z","author_association":"NONE","body":"Sorry, should have included that error message as well:\r\n\r\n```\r\nErrors:\r\n--\r\nError while reading data, error message: The Apache Avro  library failed to parse the header with the following error: Unexpected  type for default value: Expected 3, but found 2           (error code: invalid)\r\n```\r\n"}}
{"actor":{"display_login":"Yopi"}}