Skip to content

Commit b9dee24

Browse files
authored
DOC-2313-Added a NOTE [3.6]
1 parent 69d27d6 commit b9dee24

File tree

1 file changed

+7
-1
lines changed

1 file changed

+7
-1
lines changed

modules/querying/pages/select-statement/select-statement-v1.adoc

+7-1
Original file line numberDiff line numberDiff line change
@@ -778,13 +778,19 @@ We strongly suggest that an alias should be declared with every vertex and edge
778778
====
779779

780780

781-
782781
== SAMPLE
783782

784783
The SAMPLE clause is an optional clause that selects a uniform random sample from the population of edges or target vertices specified in the FROM argument.
785784

786785
[NOTE]
787786
====
787+
* In *V1* syntax, the `SAMPLE` clause supports left-to-right directed edges and undirected edges.
788+
* In *V2* and *V3* syntax, the `SAMPLE` clause supports left-to-right directed and undirected edges. Right-to-left directed edges (e.g., `FROM start:s \<-(:e)- :v`) are not supported in either V2 or V3 syntax.
789+
* The `SAMPLE` clause does not guarantee returning the exact number of elements; it may return fewer than the requested number.
790+
====
791+
792+
[TIP]
793+
====
788794
If you want to sample from a set of vertices directly, not from edges or from neighboring (target) vertices, then the following technique is simpler and faster:
789795
====
790796

0 commit comments

Comments
 (0)