Skip to content

Commit 4bc8801

Browse files
committed
Add docs comment about deduplicating query rows
1 parent fb8b569 commit 4bc8801

File tree

1 file changed

+4
-0
lines changed

1 file changed

+4
-0
lines changed

docs/codeql/ql-language-reference/queries.rst

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -75,6 +75,10 @@ ordered according to the values in the ``y`` column, in descending order:
7575
| 3 | 0 | 0 | product: 0 |
7676
+---+---+---------+------------+
7777

78+
A query may output identically duplicated rows because deduplication is done before ``.toString()``
79+
is called on the select expressions. If you wish to avoid this, explicitly call ``.toString()`` on the
80+
values in your select clause.
81+
7882
.. _query-predicates:
7983

8084
Query predicates

0 commit comments

Comments
 (0)