This is an automated email from the ASF dual-hosted git repository.
snuyanzin pushed a commit to branch main
in repository https://gitbox.apache.org/repos/asf/calcite.git
The following commit(s) were added to refs/heads/main by this push:
new f6271b79c2 Make SqlValidatorImpl#maybeCast protected to allow using it
by child classes
f6271b79c2 is described below
commit f6271b79c2253986c90632552d8e644bc64683d5
Author: Sergey Nuyanzin <[email protected]>
AuthorDate: Sat Jan 17 19:33:56 2026 +0100
Make SqlValidatorImpl#maybeCast protected to allow using it by child classes
It will allow downstream projects to reuse it in extended validators
---
.../src/main/java/org/apache/calcite/sql/validate/SqlValidatorImpl.java | 2 +-
1 file changed, 1 insertion(+), 1 deletion(-)
diff --git
a/core/src/main/java/org/apache/calcite/sql/validate/SqlValidatorImpl.java
b/core/src/main/java/org/apache/calcite/sql/validate/SqlValidatorImpl.java
index 0fc14cf6dc..ae5c8ee792 100644
--- a/core/src/main/java/org/apache/calcite/sql/validate/SqlValidatorImpl.java
+++ b/core/src/main/java/org/apache/calcite/sql/validate/SqlValidatorImpl.java
@@ -905,7 +905,7 @@ private void
throwIfExcludeEliminatesAllColumns(List<SqlIdentifier> excludeIdent
}
}
- private SqlNode maybeCast(SqlNode node, RelDataType currentType,
+ protected SqlNode maybeCast(SqlNode node, RelDataType currentType,
RelDataType desiredType) {
return SqlTypeUtil.equalSansNullability(typeFactory, currentType,
desiredType)
? node