Details

    Description

      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. 

      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)
      

      We should provide a HoodieTruncateTableCommand for hoodie table.

      Attachments

        Issue Links

          Activity

            People

              pzw2018 pengzhiwei
              pzw2018 pengzhiwei
              Votes:
              0 Vote for this issue
              Watchers:
              1 Start watching this issue

              Dates

                Created:
                Updated:
                Resolved: