Open GoogleCodeExporter opened 9 years ago
I've fixed one possible cause, but I was unable to reproduce the problem first.
My thesis is that the makeKey method was falling through and returning the
original String instead of a Date.
Original comment by tfmorris
on 27 Nov 2010 at 1:57
I have a similar case with an import of an initial JSON file, and the column
did show green numbers, except a few where "null" values. The "null" strings
values in the Freebase "type" namespace I used edit in the facet by text to
blankout the "null" values to nothing. When I ran Sort, and choose "numbers"
radio button, things kinda froze and I have attached a log showing the
exception in this particular case. The JSON file was the actual schema dump of
/common types in Freebase with the number value being the
/freebase/type_profile/instance_count just as in the query [1]. I then choose
to transform cells to numbers in that column, and then the Sort by numbers
worked fine after that.
So, I guess it would be damn skippy happy, to have a warning to the user that
"hey you have still some string values in this column, you might want to choose
transform cells to numbers, and run this sort again. You can always undo, if we
got this assumption wrong."
It was a general lockup that could be avoided, I think, with more error
handling and warnings to the user.
1.
{
"id": "/",
"type": [],
"name": null,
"creator": null,
"/type/namespace/keys": [{
"value": null,
"namespace": {
"id": null,
"name": null,
"type": [],
"timestamp": null,
"/freebase/domain_profile/hidden": null,
"/type/domain/types": [{
"id": null,
"/freebase/type_profile/instance_count": null,
"limit": 1000
}]
}
}]
}
Original comment by thadguidry
on 26 Aug 2011 at 4:24
Attachments:
Original issue reported on code.google.com by
tfmorris
on 26 Nov 2010 at 5:57