loadBackup#

swordfish.function.loadBackup()#

Load the backup of a partition in a distributed table. It must be executed by a logged-in user.

Parameters:
  • backupDir (Constant) – A string indicating the directory where the backup is saved.

  • dbPath (Constant) – A string indicating the path of a DFS database. For example: “dfs://demo”.

  • partition (Constant) – A string indicating the path of a partition under the database. For example: “/20190101/GOOG”.

  • tableName (Constant) – A string indicating a distributed table name.