boneanxs opened a new pull request, #9895: URL: https://github.com/apache/hudi/pull/9895
### Change Logs _Describe context and summary for this change. Highlight if any code was copied._ CreateIndex is added in [HUDI-4165](https://github.com/apache/hudi/pull/5761/files), and spark 3.3 also include this in [SPARK-36895](https://github.com/apache/spark/pull/34148). Since `CreateIndex` uses same package `org.apache.spark.sql.catalyst.plans.logical` in HUDI and Spark3.3, but params are not same. So it could introduce class conflict issues if we use it. One simple modification to fix this issue is we directly move `CreateIndex` to a different package path, but I think it's not proper to do, given 1. We may not get benefit from Spark to perform other analyze rules for `CreateIndex` 2. Give us extra effort when moving to DSV2 3. Other 3rd packages rely on old path(like kyuubi hudi auth) requires additional changes. 4. HUDI always use `org.apache.spark.sql.catalyst.plans.logical` for logical plan(like `MergeInto`) So here I still keep the same package path with Spark, but change 1. Use the same params like Spark, so there should be no class conflict 2. Since Spark2 doesn't have `org.apache.spark.sql.catalyst.analysis.FieldName` but `CreateIndex` requires, so we only support Index related commands from **Spark3.2**(I can also add support for Spark2 and Spark3.0, spark3.1, but not sure it's still needed or not) 3. Address TODO: resolve columns for CreateIndex during Analyze stage ### Impact _Describe any public API or user-facing feature change or any performance impact._ Index related commands are not supported anymore below Spark3.2 ### Risk level (write none, low medium or high below) _If medium or high, explain what verification was done to mitigate the risks._ low ### Documentation Update _Describe any necessary documentation update if there is any new feature, config, or user-facing change_ - _The config description must be updated if new configs are added or the default value of the configs are changed_ - _Any new feature or user-facing change requires updating the Hudi website. Please create a Jira ticket, attach the ticket number here and follow the [instruction](https://hudi.apache.org/contribute/developer-setup#website) to make changes to the website._ ### Contributor's checklist - [ ] Read through [contributor's guide](https://hudi.apache.org/contribute/how-to-contribute) - [ ] Change Logs and Impact were stated clearly - [ ] Adequate tests were added if applicable - [ ] CI passed -- 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]
