Support date partitioning with JSON data.

Commit message says it all.

I also updated the Thrift code to support fields other than `timestamp`.

CC @pgarbacki @andykram
An interesting question is whether the value returned here matters. Theoretically, thrift should be field-name-agnostic. It's just a comment. No action required on your end.