You are viewing a plain text version of this content. The canonical link for it is here.
Posted to dev@ignite.apache.org by "Stanislav Lukyanov (JIRA)" <ji...@apache.org> on 2019/05/07 00:48:00 UTC

[jira] [Created] (IGNITE-11836) keyFields must be empty if keyType is an SQL type

Stanislav Lukyanov created IGNITE-11836:
-------------------------------------------

             Summary: keyFields must be empty if keyType is an SQL type
                 Key: IGNITE-11836
                 URL: https://issues.apache.org/jira/browse/IGNITE-11836
             Project: Ignite
          Issue Type: Improvement
          Components: sql
            Reporter: Stanislav Lukyanov


Currently if QueryEntity.keyType is an SQL type (e.g. String or Integer) then keyFields property is simply ignored. This creates room for a misconfiguration.

Let's add a check that keyFields is null or empty if keyType is an SQL type.

Probably the same should be done for valueType and valueFields.

Also, fields property should be handled somehow. An obvious case is that fields should be null or empty when both key and value are SQL types. There is probably more invariants to enforce though.



--
This message was sent by Atlassian JIRA
(v7.6.3#76005)