Skip to content

Commit

Permalink
Doc: Small fix to add file doc (apache#3343)
Browse files Browse the repository at this point in the history
Some missing back quotes, and add escape so that some of these render as appropriate.
  • Loading branch information
szehon-ho authored Oct 21, 2021
1 parent 62e20e3 commit 93987da
Showing 1 changed file with 3 additions and 3 deletions.
6 changes: 3 additions & 3 deletions site/docs/spark-procedures.md
Original file line number Diff line number Diff line change
Expand Up @@ -365,7 +365,7 @@ Migrate `db.sample` in the current catalog to an Iceberg table without adding an
CALL catalog_name.system.migrate('db.sample')
```

### add_files
### `add_files`

Attempts to directly add files from a Hive or file based table into a given Iceberg table. Unlike migrate or
snapshot, `add_files` can import files from a specific partition or partitions and does not create a new Iceberg table.
Expand All @@ -380,7 +380,7 @@ will then treat these files as if they are part of the set of files owned by Ic
| Argument Name | Required? | Type | Description |
|---------------|-----------|------|-------------|
| `table` | ✔️ | string | Table which will have files added to|
| `source_table`| ✔️ | string | Table where files should come from, paths are also possible in the form of `file_format`.`path |
| `source_table`| ✔️ | string | Table where files should come from, paths are also possible in the form of \`file_format\`.\`path\` |
| `partition_filter` || map<string, string> | A map of partitions in the source table to import from |

Warning : Schema is not validated, adding files with different schema to the Iceberg table will cause issues.
Expand All @@ -406,4 +406,4 @@ CALL spark_catalog.system.add_files(
table => 'db.tbl',
source_table => '`parquet`.`path/to/table`'
)
```
```

0 comments on commit 93987da

Please sign in to comment.