commit | 9dfc5cad3efe72e9b14513b15a988ba86ab5a4ea | [log] [tgz] |
---|---|---|
author | Dmitri Bourlatchkov <dmitri.bourlatchkov@datastax.com> | Thu Nov 05 12:38:46 2020 -0500 |
committer | Josh Elser <elserj@apache.org> | Fri Nov 13 16:38:22 2020 -0500 |
tree | 13d2d3b52edb931f0d5adc0e7ba4069b0ba90dbd | |
parent | c614d41a277ddff388dcd26fe6d6b8ed167d110e [diff] |
[CALCITE-4379] Meta.Frame created with java float values in rows hits a ClassCastException in toProto() * Remove unnecessary conversion of Float values to long in TypedValue.toProto(...). The subsequently invoked writeToProtoWithType(...) method actually expects float values in this case. * Make a similar fix for Character values. * Add Frame serialization round-trip unit tests to cover this failure mode. * Note: a similar problem appears to still exist for Timestamp and Date/Time values in this context, but I did not attempt to fix it in this commit because there is apparently no use case for putting Timestamp/Date/Time objects into Frames. Those values are normally returned as plain numbers in result rows. Closes #130 Signed-off-by: Josh Elser <elserj@apache.org>
Apache Calcite's Avatica is a framework for building database drivers.
Avatica is a sub-project of Apache Calcite.
For more details, see the home page.
Release notes for all published versions are available on the history page.