|
169 | 169 | * Default implementation of {@link SqlValidator}, the class was copied over because of |
170 | 170 | * CALCITE-4554. |
171 | 171 | * |
172 | | - * <p>Lines 202 ~ 205, Flink improves error message for functions without appropriate arguments in |
| 172 | + * <p>Lines 207 ~ 210, Flink improves error message for functions without appropriate arguments in |
173 | 173 | * handleUnresolvedFunction. |
174 | 174 | * |
175 | | - * <p>Lines 1270 ~ 1272, CALCITE-7217, should be removed after upgrading Calcite to 1.41.0. |
| 175 | + * <p>Lines 1275 ~ 1277, CALCITE-7217, should be removed after upgrading Calcite to 1.41.0. |
176 | 176 | * |
177 | | - * <p>Lines 2031 ~ 2045, Flink improves error message for functions without appropriate arguments in |
| 177 | + * <p>Lines 2036 ~ 2050, Flink improves error message for functions without appropriate arguments in |
178 | 178 | * handleUnresolvedFunction at {@link SqlValidatorImpl#handleUnresolvedFunction}. |
179 | 179 | * |
180 | | - * <p>Lines 2571 ~ 2588, CALCITE-7217, should be removed after upgrading Calcite to 1.41.0. |
| 180 | + * <p>Lines 2576 ~ 2595, CALCITE-7217, CALCITE-7312 should be removed after upgrading Calcite to |
| 181 | + * 1.42.0. |
181 | 182 | * |
182 | | - * <p>Line 2618 ~2631, set the correct scope for VECTOR_SEARCH. |
| 183 | + * <p>Line 2626 ~2644, set the correct scope for VECTOR_SEARCH. |
183 | 184 | * |
184 | | - * <p>Lines 3920 ~ 3925, 6599 ~ 6606 Flink improves Optimize the retrieval of sub-operands in |
| 185 | + * <p>Lines 3923 ~ 3927, 6602 ~ 6608 Flink improves Optimize the retrieval of sub-operands in |
185 | 186 | * SqlCall when using NamedParameters at {@link SqlValidatorImpl#checkRollUp}. |
186 | 187 | * |
187 | | - * <p>Lines 5340 ~ 5347, FLINK-24352 Add null check for temporal table check on SqlSnapshot. |
| 188 | + * <p>Lines 5343 ~ 5349, FLINK-24352 Add null check for temporal table check on SqlSnapshot. |
188 | 189 | */ |
189 | 190 | public class SqlValidatorImpl implements SqlValidatorWithHints { |
190 | 191 | // ~ Static fields/initializers --------------------------------------------- |
@@ -2578,16 +2579,18 @@ private SqlNode registerFrom( |
2578 | 2579 | // in order to make visible the left items |
2579 | 2580 | // of the JOIN tree. |
2580 | 2581 | scopes.put(node, usingScope); |
2581 | | - registerFrom( |
2582 | | - parentScope, |
2583 | | - usingScope, |
2584 | | - register, |
2585 | | - ((SqlCall) node).operand(0), |
2586 | | - enclosingNode, |
2587 | | - alias, |
2588 | | - extendList, |
2589 | | - forceNullable, |
2590 | | - true); |
| 2582 | + newOperand = |
| 2583 | + registerFrom( |
| 2584 | + parentScope, |
| 2585 | + usingScope, |
| 2586 | + register, |
| 2587 | + ((SqlCall) node).operand(0), |
| 2588 | + enclosingNode, |
| 2589 | + alias, |
| 2590 | + extendList, |
| 2591 | + forceNullable, |
| 2592 | + true); |
| 2593 | + sbc.setOperand(0, newOperand); |
2591 | 2594 | return sbc; |
2592 | 2595 | // ----- FLINK MODIFICATION END ----- |
2593 | 2596 |
|
|
0 commit comments