ignite-dev mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From "Stanislav Lukyanov (JIRA)" <j...@apache.org>
Subject [jira] [Created] (IGNITE-11836) keyFields must be empty if keyType is an SQL type
Date Tue, 07 May 2019 00:48:00 GMT
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

View raw message