ignite-dev mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From Nikolay Izhikov <nizhi...@apache.org>
Subject QueryEntity design
Date Wed, 07 Mar 2018 11:00:37 GMT
Hello, Igniters.

I'm working on IGNITE-7691 [1]
The goal of ticket is provide scale and precision info about DECIMAL columns.

I see that QueryEntity has a separate collection for each type of meta information:

* not null fields - [2]
* default values - [3]

Why we have such class design?
It seems like a wrong design to have a separate collection for every type of metainfo.

Because, there are many pieces of column meta information:

* not null
* default value
* maximum length/size for VARCHAR or ARRAY or BINARY
* scale, precision
* etc.

Do we have plans to provide this information to user through QueryEntity?

[1] https://issues.apache.org/jira/projects/IGNITE/issues/IGNITE-7691
[2] https://github.com/apache/ignite/blob/master/modules/core/src/main/java/org/apache/ignite/cache/QueryEntity.java#L87
[3] https://github.com/apache/ignite/blob/master/modules/core/src/main/java/org/apache/ignite/cache/QueryEntity.java#L90
Mime
View raw message