lowka commented on code in PR #5119:
URL: https://github.com/apache/ignite-3/pull/5119#discussion_r1942799191
##########
modules/sql-engine/src/main/java/org/apache/ignite/internal/sql/engine/util/IgniteResource.java:
##########
@@ -85,8 +85,14 @@ public interface IgniteResource {
@BaseMessage("{0} datatype is not supported'")
ExInst<SqlValidatorException> dataTypeIsNotSupported(String a0);
- @BaseMessage("Length for type {0} must be at least 1")
- ExInst<SqlValidatorException> invalidStringLength(String typeName);
+ @BaseMessage("{0} length {1,number,#} must be between {2,number,#} and
{3,number,#}")
+ ExInst<SqlValidatorException> invalidLengthForType(String typeName, int
value, int min, int max);
+
+ @BaseMessage("{0} precision {1,number,#} must be between {2,number,#} and
{3,number,#}")
Review Comment:
I think this would make error messages less consistent. Yes, we can change
messages here, but calcite does not use period for its messages, and the SQL
validator still produces messages defined by it.
--
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]