This is an automated email from the ASF dual-hosted git repository. snuyanzin pushed a commit to branch snuyanzin-patch-1 in repository https://gitbox.apache.org/repos/asf/calcite.git
commit b82fcda0de61c0ef4e48014020dc95081cc56b6a 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 Not sure If I need to create a jira for this case The reason is that in Flink there is a number of Flink specific cases like `CREATE TABLE ... AS SELECT`, `REPLACE TABLE ... AS`, a number of ways where partitions might be specified. Most of them are not SQL Standard. However this method is useful there. Instead of having it's own we would like to reuse existing --- .../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..106bd98d8b 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 @@ -895,7 +895,7 @@ private void throwIfUnknownExcludeColumns(List<SqlIdentifier> excludeIdentifiers } } - private void throwIfExcludeEliminatesAllColumns(List<SqlIdentifier> excludeIdentifiers, + protected void throwIfExcludeEliminatesAllColumns(List<SqlIdentifier> excludeIdentifiers, int fieldsBeforeStar, PairList<String, RelDataType> fields, SqlIdentifier identifier) { if (!excludeIdentifiers.isEmpty()
