Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
1 change: 1 addition & 0 deletions data-explorer/kusto/management/retention-policy.md
Original file line number Diff line number Diff line change
Expand Up @@ -42,6 +42,7 @@ A retention policy includes the following properties:
* Defaults to `Enabled`.
* If set to `Enabled`, data deleted **due to retention policy** will be recoverable for 14 days after it's been soft-deleted.
* It is not possible to configure the recoverability period.
* Recoverability is managed at the database level - enabling it on a single table or materialized view will typically propagate the behavior to the entire database.

> [!NOTE]
>
Expand Down
28 changes: 27 additions & 1 deletion data-explorer/kusto/query/graph-query-language-reference.md
Original file line number Diff line number Diff line change
Expand Up @@ -260,6 +260,32 @@ MATCH WALK (n)-[]->(a), TRAIL (n)-[]->(b)
RETURN n, a, b
```

### Shortest path

Finds the shortest paths between a set of source nodes and a set of target nodes.

### Single shortest path

Calculates single shortest path per source/target pair.

```gql
MATCH P = ANY SHORTEST (n {station:"South-West"})-[]->{1,3}(a {station: "North"})
RETURN P
```

### All shortest paths

Calculates all shortest paths of equal minimum length.

```gql
MATCH P = ALL SHORTEST (n {station:"South-West"})-[]->{1,3}(a {station: "North"})
RETURN P
```

#### Limitations:

* Shortest path match clause can't contain multiple pattern sequences

## Functions and operators reference

Graph Query Language (GQL) provides a rich set of functions and operators to work with graph patterns, nodes, edges, and properties.
Expand Down Expand Up @@ -352,7 +378,7 @@ RETURN COUNT(*) > 0 AS HasSuspiciousActivity

### Limitations

- **Query structure**: All openCypher queries must start with a `MATCH` statement.
- **Query structure**: All GQL queries must start with a `MATCH` statement.

- **Reserved keywords**: Some GQL keywords can't be used as identifiers in queries. Some reserved keywords aren't immediately obvious (for example, `DATE` is a reserved keyword). If your graph data has property names that conflict with GQL reserved keywords, use different property names in your graph schema or rename them to avoid parsing conflicts.

Expand Down