[spark] Fix view resolution for CTE and ORDER BY ordinal (#7552) Fix PaimonViewResolver to apply early analysis rules (CTESubstitution, SubstituteUnresolvedOrdinals) to parsed view plans. These rules run in Spark's earlyBatches before the Resolution batch, so they won't re-run for plans injected by PaimonViewResolver during resolution. Without this fix: - Views with CTE (`WITH t AS ...`) fail with `TABLE_OR_VIEW_NOT_FOUND` - Views with `ORDER BY 1` (ordinal) produce incorrect results

Apache Paimon is a lake format that enables building a Realtime Lakehouse Architecture with Flink and Spark for both streaming and batch operations. Paimon innovatively combines lake format and LSM structure, bringing realtime streaming updates into the lake architecture.
Background and documentation are available at https://paimon.apache.org
Paimon's former name was Flink Table Store, developed from the Flink community. The architecture refers to some design concepts of Iceberg. Thanks to Apache Flink and Apache Iceberg.
Paimon tracks issues in GitHub and prefers to receive contributions as pull requests.
Please make sure you are subscribed to the mailing list you are posting to! If you are not subscribed to the mailing list, your message will either be rejected (dev@ list) or you won't receive the response (user@ list).
You can join the Paimon community on Slack. Paimon channel is in ASF Slack workspace.
user@paimon.apache.org to apply for an ASF Slack invitation. Then join Paimon channel.JDK 8/11 is required for building the project. Maven version >=3.6.3.
mvn clean install -DskipTests command to build the project.mvn spotless:apply to format the project (both Java and Scala).paimon-common/target/generated-sources/antlr4 as Sources Root.The code in this repository is licensed under the Apache Software License 2.