Uploaded image for project: 'Apache Hudi'
  1. Apache Hudi
  2. HUDI-6004

failed to execute Spark procedure for table not in current database

    XMLWordPrintableJSON

Details

    Description

      My current database of Spark session is `default` and when I executed this sql:

      call run_clean(table => 'hudi_database.table1', retain_commits => 1)
      

      I got this error message:

      org.apache.spark.sql.catalyst.analysis.NoSuchTableException: Table or view 'table1' not found in database 'default';
          at org.apache.spark.sql.catalyst.catalog.SessionCatalog.requireTableExists(SessionCatalog.scala:185)
          at org.apache.spark.sql.catalyst.catalog.SessionCatalog.getTableMetadata(SessionCatalog.scala:433)
          at org.apache.spark.sql.catalyst.catalog.HoodieCatalogTable$.apply(HoodieCatalogTable.scala:365)
          at org.apache.hudi.HoodieCLIUtils$.getHoodieCatalogTable(HoodieCLIUtils.scala:66)
          at org.apache.hudi.HoodieCLIUtils$.createHoodieClientFromPath(HoodieCLIUtils.scala:44)
          at org.apache.spark.sql.hudi.command.procedures.RunCleanProcedure.call(RunCleanProcedure.scala:86)
          at org.apache.spark.sql.hudi.command.CallProcedureHoodieCommand.run(CallProcedureHoodieCommand.scala:33) 

      Attachments

        Issue Links

          Activity

            People

              Unassigned Unassigned
              1365976815@qq.com lvyanquan
              Votes:
              0 Vote for this issue
              Watchers:
              1 Start watching this issue

              Dates

                Created:
                Updated: