2b76e6d15c
### What changes were proposed in this pull request? Replace v1 exec node `AlterTableRecoverPartitionsCommand` by the logical node `AlterTableRecoverPartitions` in `CatalogImpl.recoverPartitions()`. ### Why are the changes needed? 1. Print user friendly error message for views: ``` my_temp_table is a temp view. 'recoverPartitions()' expects a table ``` Before the changes: ``` Table or view 'my_temp_table' not found in database 'default' ``` 2. To not bind to v1 `ALTER TABLE .. RECOVER PARTITIONS`, and to support v2 tables potentially as well. ### Does this PR introduce _any_ user-facing change? Yes, it can. ### How was this patch tested? By running new test in `CatalogSuite`: ``` $ build/sbt -Phive -Phive-thriftserver "test:testOnly org.apache.spark.sql.internal.CatalogSuite" ``` Closes #31403 from MaxGekk/catalogimpl-recoverPartitions. Authored-by: Max Gekk <max.gekk@gmail.com> Signed-off-by: Wenchen Fan <wenchen@databricks.com> |
||
---|---|---|
.. | ||
benchmarks | ||
src | ||
pom.xml |