From 0f44262a9e107cb5d0a0969ec87d97ef65f65815 Mon Sep 17 00:00:00 2001 From: Hussein Awala Date: Mon, 30 Oct 2023 16:53:24 +0100 Subject: [PATCH] Docs: Fix typos (#8892) * Fix some typos in docs * fix the table format --- docs/java-custom-catalog.md | 4 ++-- docs/spark-procedures.md | 2 +- 2 files changed, 3 insertions(+), 3 deletions(-) diff --git a/docs/java-custom-catalog.md b/docs/java-custom-catalog.md index 59238a2b2d12..29a4af1204f1 100644 --- a/docs/java-custom-catalog.md +++ b/docs/java-custom-catalog.md @@ -138,7 +138,7 @@ public class CustomCatalog extends BaseMetastoreCatalog { @Override public boolean dropTable(TableIdentifier identifier, boolean purge) { // Example service to delete table - CustomService.deleteTable(identifier.namepsace().level(0), identifier.name()); + CustomService.deleteTable(identifier.namespace().level(0), identifier.name()); } @Override @@ -146,7 +146,7 @@ public class CustomCatalog extends BaseMetastoreCatalog { Preconditions.checkArgument(from.namespace().level(0).equals(to.namespace().level(0)), "Cannot move table between databases"); // Example service to rename table - CustomService.renameTable(from.namepsace().level(0), from.name(), to.name()); + CustomService.renameTable(from.namespace().level(0), from.name(), to.name()); } // implement this method to read catalog name and properties during initialization diff --git a/docs/spark-procedures.md b/docs/spark-procedures.md index 65ef9c7b8450..8ccb7728f47e 100644 --- a/docs/spark-procedures.md +++ b/docs/spark-procedures.md @@ -131,7 +131,7 @@ This procedure invalidates all cached Spark plans that reference the affected ta |---------------|-----------|------|-------------| | `table` | ✔️ | string | Name of the table to update | | `snapshot_id` | | long | Snapshot ID to set as current | -| `ref` | | string | Snapshot Referece (branch or tag) to set as current | +| `ref` | | string | Snapshot Reference (branch or tag) to set as current | Either `snapshot_id` or `ref` must be provided but not both.