dawidwys commented on PR #24940: URL: https://github.com/apache/flink/pull/24940#issuecomment-2176422039
This caused me some serious headache. :( I feel there are multiple issues around validation. 1. We run `SqlNode#validate` twice for `INSERT INTO` queries. Once in `PreValidateReWriter` to expand a star and then add partitions and second in the regular `validate`. `Validate` seems to be not idempotent for `LATERAL` tables. `LATERAL` gets removed during validation and second run fails. For some reason this doesn't appear in the current code. 2. If we perform a proper validation for all `ProcedureNamespaces` the problem from 1. appears -- 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]
