pengzhiwei created HUDI-1883:
--------------------------------
Summary: Support Truncate Table For Hoodie
Key: HUDI-1883
URL: https://issues.apache.org/jira/browse/HUDI-1883
Project: Apache Hudi
Issue Type: Sub-task
Components: Spark Integration
Reporter: pengzhiwei
Assignee: pengzhiwei
Fix For: 0.9.0
Currently spark's TruncateTableCommand will remove all the data in the table
path including the .hoodie directory which will lead to crash for hoodie when
query the truncated hoodie table.
{code:java}
at org.apache.spark.deploy.SparkSubmit.main(SparkSubmit.scala)
Caused by: org.apache.hudi.exception.TableNotFoundException: Hoodie table not
found in path Unable to find a hudi table for the user provided paths.
at org.apache.hudi.DataSourceUtils.getTablePath(DataSourceUtils.java:81)
{code}
We should provide a HoodieTruncateTableCommand for hoodie table.
--
This message was sent by Atlassian Jira
(v8.3.4#803005)