[ 
https://issues.apache.org/jira/browse/IGNITE-13110?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=17161221#comment-17161221
 ] 

Aleksey Plekhanov commented on IGNITE-13110:
--------------------------------------------

[~skalashnikov], looks good to me. 
Merged to master, cherry-picked to 2.9.
Thanks for the contribution. 

> An option to validate field types against SQL schema on key-value insert
> ------------------------------------------------------------------------
>
>                 Key: IGNITE-13110
>                 URL: https://issues.apache.org/jira/browse/IGNITE-13110
>             Project: Ignite
>          Issue Type: Bug
>            Reporter: Sergey Kalashnikov
>            Assignee: Sergey Kalashnikov
>            Priority: Major
>             Fix For: 2.9
>
>          Time Spent: 0.5h
>  Remaining Estimate: 0h
>
> Let's add a configurable option to prevent insertion of key-value pairs that 
> aren't compatible with SQL schema.
> An option can be added on {{SqlConfiguration}} level or even per 
> {{QueryEntity}}.
> The checks can be performed within the existing 
> {{GridQueryTypeDescriptor#validateKeyAndValue}} facility that seems to be 
> well suited for this task.
> This addition will prevent the problems when values successfully added to the 
> cache later produce errors when queried with SQL.
> See discussion : 
> http://apache-ignite-developers.2346864.n4.nabble.com/Prevent-insertion-of-cache-entry-if-the-binary-field-type-and-the-type-of-the-query-entity-do-not-ma-td47678.html



--
This message was sent by Atlassian Jira
(v8.3.4#803005)

Reply via email to