danny0405 commented on a change in pull request #706: [CALCITE-2302] Implicit
type cast support
URL: https://github.com/apache/calcite/pull/706#discussion_r310426132
##########
File path: core/src/main/java/org/apache/calcite/sql/validate/SqlValidator.java
##########
@@ -768,6 +769,27 @@ boolean validateModality(SqlSelect select, SqlModality
modality,
void validateSequenceValue(SqlValidatorScope scope, SqlIdentifier id);
SqlValidatorScope getWithScope(SqlNode withItem);
+
+ /**
+ * Set if implicit type coercion is allowed when the validator does
validation.
+ * See {@link org.apache.calcite.sql.validate.implicit.TypeCoercionImpl} for
the details.
+ * @param enabled default as true.
+ */
+ SqlValidator setEnableTypeCoercion(boolean enabled);
+
+ /** Get if this validator supports implicit type coercion. */
+ boolean isEnableTypeCoercion();
Review comment:
Renamed, thanks.
----------------------------------------------------------------
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.
For queries about this service, please contact Infrastructure at:
[email protected]
With regards,
Apache Git Services