Closed GoogleCodeExporter closed 9 years ago
The fusion tables discovery doc is here:
https://www.googleapis.com/discovery/v1/apis/fusiontables/v1/rest
The part we are interested is:
"rows": {
"type": "array",
"description": "The rows in the table. For each cell we print out whatever cell value (e.g., numeric, string) exists. Thus it is important that each cell contains only one value.",
"items": {
"type": "array",
"items": {
"type": "array",
"items": {
"type": "any"
}
}
}
}
Original comment by rmis...@google.com
on 9 Jul 2012 at 5:19
For
"rows": {
"type": "array",
"description": "The rows in the table. For each cell we print out whatever cell value (e.g., numeric, string) exists. Thus it is important that each cell contains only one value.",
"items": {
"type": "array",
"items": {
"type": "array",
"items": {
"type": "any"
}
}
}
}
Generating java.util.List<java.util.List<java.util.List<Object>>> rows looks
correct.
Maybe the discovery doc is out of sync with the server. Also, as Tony observed
there is no reason for a triply nested array to represent a table.
Warren, can you please take a look at this? There seems to be a mismatch
between https://www.googleapis.com/discovery/v1/apis/fusiontables/v1/rest and
what the server is returning.
Original comment by rmis...@google.com
on 9 Jul 2012 at 5:38
I will look into it. My hunch is that in a cell value in a row may contain
either atomic values such as numbers and strings, or a geometry value which may
contain an array of points, lines or polygons. The generated client library
may not be handling this mixture gracefully.
Original comment by whs...@google.com
on 9 Jul 2012 at 6:03
Based on my reading of this, the JSON schema seems incorrect to me. See:
http://tools.ietf.org/html/draft-zyp-json-schema-03
It needs to be declared like this:
"rows": {
"type": "array",
"description": "The rows in the table. For each cell we print out whatever cell value (e.g., numeric, string) exists. Thus it is important that each cell contains only one value.",
"items": {
"type": "array",
"items": {
"type": "any",
}
}
}
If so, then let's close this issue as "ByDesign" and file a bug internally to
fix the JSON Schema.
By the way, thanks to the original reporter for the feedback!
Original comment by yan...@google.com
on 9 Jul 2012 at 6:41
A bug has now been filed internally to track this issue. Thanks for the report.
Original comment by whs...@google.com
on 9 Jul 2012 at 6:47
Thank you!
Original comment by christ...@christianjunk.de
on 9 Jul 2012 at 8:25
Closing this issue as "ByDesign" since the internal bug is filed.
Original comment by rmis...@google.com
on 10 Jul 2012 at 11:28
Any workaround till this is solved?
Original comment by deepakjh...@gmail.com
on 12 Aug 2012 at 6:34
A fix for this issue should go live very soon. Until then, you can use the
modified version of Sqlresponse.java posted by the originator of this thread.
Original comment by whs...@google.com
on 13 Aug 2012 at 5:01
Hello,
Is this fixed in v1-rev19-1.14.1-beta? I'm asking because I'm still getting the
Exception thrown from the example:
https://code.google.com/p/google-api-java-client/source/browse?repo=samples#hg%2
Ffusiontables-cmdline-sample
Regards,
Alex
Original comment by dev.alej...@gmail.com
on 8 May 2013 at 8:08
Original issue reported on code.google.com by
christ...@christianjunk.de
on 30 Jun 2012 at 12:32Attachments: