-
Notifications
You must be signed in to change notification settings - Fork 1.1k
JSON serialization assumes Maps aren't iterable #1890
Copy link
Copy link
Closed
Labels
api: bigqueryIssues related to the BigQuery API.Issues related to the BigQuery API.priority: p2Moderately-important priority. Fix may not be included in next release.Moderately-important priority. Fix may not be included in next release.type: bugError or flaw in code with unintended results or allowing sub-optimal usage patterns.Error or flaw in code with unintended results or allowing sub-optimal usage patterns.
Milestone
Metadata
Metadata
Assignees
Labels
api: bigqueryIssues related to the BigQuery API.Issues related to the BigQuery API.priority: p2Moderately-important priority. Fix may not be included in next release.Moderately-important priority. Fix may not be included in next release.type: bugError or flaw in code with unintended results or allowing sub-optimal usage patterns.Error or flaw in code with unintended results or allowing sub-optimal usage patterns.
I'm using the java libraries from Clojure. Clojure native types (maps, vectors, etc) follow all normal java interfaces, except the built-in maps implement
Iterable. When using these with BigQuery streaming, the JSON serializer thinks these are collections rather than maps and serializes them incorrectly. It would be nice if it didn't make that assumption and just directly checked for ax instanceof Map.