Skip to content

Commit

Permalink
Update user manual and add test for backticks
Browse files Browse the repository at this point in the history
Signed-off-by: Chen Dai <[email protected]>
  • Loading branch information
dai-chen committed Oct 31, 2023
1 parent d36c7e8 commit 1ac46b1
Show file tree
Hide file tree
Showing 2 changed files with 21 additions and 0 deletions.
14 changes: 14 additions & 0 deletions docs/index.md
Original file line number Diff line number Diff line change
Expand Up @@ -262,6 +262,20 @@ WITH (
)
```

### Index Job Management

Currently Flint index job ID is same as internal Flint index name in [OpenSearch](./index.md#OpenSearch) section below.

```sql
RECOVER INDEX JOB <id>
```

Example:

```sql
RECOVER INDEX JOB `flint_spark_catalog_default_test_skipping_index`
```

## Index Store

### OpenSearch
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -48,6 +48,13 @@ class FlintSparkIndexJobSqlITSuite extends FlintSparkSuite with Matchers {
|""".stripMargin)
.run(s"RECOVER INDEX JOB $testSkippingIndex")
.assertIndexData(indexData => indexData should have size 6)
.stopStreamingJob()
.run(s"""
| INSERT INTO $testTable VALUES
| (TIMESTAMP '2023-10-01 06:00:00', 'G', 40, 'Vancouver')
|""".stripMargin)
.run(s"RECOVER INDEX JOB `$testSkippingIndex`") // test backtick name
.assertIndexData(indexData => indexData should have size 7)

}
}
Expand Down

0 comments on commit 1ac46b1

Please sign in to comment.