TIBCOSoftware / snappydata

Project SnappyData - memory optimized analytics database, based on Apache Spark™ and Apache Geode™. Stream, Transact, Analyze, Predict in one cluster
http://www.snappydata.io
Other
1.04k stars 201 forks source link

[SNAP-3332] set scale/precision array on session in each PreparedStatement execution #1562

Closed sumwale closed 3 years ago

sumwale commented 3 years ago

The prepare phase of PreparedStatement returns the scale/precision of parameters for routed queries. This should be set back on SnappySession during execution so that the current set of parameters are used rather than those set by the last prepare (which can be different)

Also made the PVS info array size uniform to be three ints per type removing the unused (and incorrect) fourth field which is supposed to have nullability information.

Added unit test for the bug (PreparedQueryRoutingSingleNodeSuite.scala#SNAP-3332)

Other PRs

https://github.com/TIBCOSoftware/snappy-store/pull/567