zstan commented on code in PR #2431:
URL: https://github.com/apache/ignite-3/pull/2431#discussion_r1294506752
##########
modules/sql-engine/src/test/java/org/apache/ignite/internal/sql/engine/planner/CastResolutionTest.java:
##########
@@ -165,23 +183,23 @@ private static String makeUsableIntervalType(String
typeName) {
private enum CastMatrix {
Review Comment:
my idea is: CastMatrix(String from, Set<String> toTypes)
for CAST (_from_ to _toType_):
from appropriate FROM type
and _toTypes_ enumeration of all allowed casts, thus all NOT allowed casts
is calculated as:
allTypes = Arrays.stream(CastMatrix.values()).map(v ->
v.from).collect(Collectors.toSet());
deprecetadCastTypes = allTypes - toTypes;
--
This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.
To unsubscribe, e-mail: [email protected]
For queries about this service, please contact Infrastructure at:
[email protected]