You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@hudi.apache.org by "pengzhiwei (Jira)" <ji...@apache.org> on 2021/06/23 11:13:00 UTC
[jira] [Resolved] (HUDI-1883) Support Truncate Table For Hoodie
[ https://issues.apache.org/jira/browse/HUDI-1883?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel ]
pengzhiwei resolved HUDI-1883.
------------------------------
Resolution: Done
> 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
> Priority: Major
> Labels: pull-request-available
> 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)