Skip to content

Commit

Permalink
Docs: Fix typos (#8892)
Browse files Browse the repository at this point in the history
* Fix some typos in docs

* fix the table format
  • Loading branch information
hussein-awala authored Oct 30, 2023
1 parent a7828db commit 0f44262
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 3 deletions.
4 changes: 2 additions & 2 deletions docs/java-custom-catalog.md
Original file line number Diff line number Diff line change
Expand Up @@ -138,15 +138,15 @@ 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
public void renameTable(TableIdentifier from, TableIdentifier to) {
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
Expand Down
2 changes: 1 addition & 1 deletion docs/spark-procedures.md
Original file line number Diff line number Diff line change
Expand Up @@ -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.

Expand Down

0 comments on commit 0f44262

Please sign in to comment.