leaves12138 opened a new pull request, #7978: URL: https://github.com/apache/paimon/pull/7978
### Purpose Avoid executing the Flink job for BTree global index creation when no build topology is generated. ### Changes - Return `true` from `BTreeIndexTopoBuilder.buildIndex` only after a commit topology is created. - Return `false` when scans produce no build tasks. - Add a unit test covering the no-build-task path. ### Root Cause `buildIndex` previously returned `true` even when `allStreams` was empty, so `buildIndexAndExecute` could call `env.execute` for an empty BTree index build. ### Tests - `mvn -pl paimon-flink/paimon-flink-common -am -Pfast-build -DfailIfNoTests=false -Dtest=BTreeIndexTopoBuilderTest test` -- 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]
