Location via proxy:   [ UP ]  
[Report a bug]   [Manage cookies]                
Skip to content

Commit 7d29855

Browse files
author
Liudmila Mantrova
committed
DOC: bug fix in filter function description in vops
1 parent f9f78ec commit 7d29855

File tree

1 file changed

+8
-7
lines changed

1 file changed

+8
-7
lines changed

doc/src/sgml/vops.sgml

Lines changed: 8 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -1307,16 +1307,17 @@ AND filter(betwixt(day, '2015-01-01', '2016-01-01'));
13071307
</listitem>
13081308

13091309
<listitem>
1310-
<para>
13111310
The result of vector boolean operations is <literal>vops_bool</literal>.
13121311
Since &project; requires predicate expressions to have a regular boolean type,
13131312
you have to convert the result to the <literal>bool</literal> type using the
1314-
<function>filter()</function> function. Taking an arbitrary vector boolean
1315-
expression, this function returns a regular boolean,
1316-
which is always <literal>true</literal>, and sets
1317-
the <literal>filter_mask</literal> value to define the actual result of
1318-
the boolean operation, which is actually used in subsequent operations.
1319-
</para>
1313+
<function>filter()</function> function. Taking a vector boolean
1314+
expression, this function calculates a <literal>filter_mask</literal> value that defines the result of
1315+
this boolean operation for each vector element. If all mask bits are zero
1316+
(the predicate is false for all vector elements), then <function>filter()</function>
1317+
returns <literal>false</literal>, and &project; executor skips this record.
1318+
Otherwise, <literal>true</literal> is returned, so vector operators will
1319+
check the <literal>filter_mask</literal> value for the selected vector
1320+
elements in subsequent operations.
13201321
</listitem>
13211322
<listitem>
13221323
<para>

0 commit comments

Comments
 (0)