-
Notifications
You must be signed in to change notification settings - Fork 1
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
deploy: substrait-io/substrait@e3860f5
- Loading branch information
1 parent
9ec16eb
commit b7ce63c
Showing
10 changed files
with
37 additions
and
32 deletions.
There are no files selected for viewing
Large diffs are not rendered by default.
Oops, something went wrong.
Large diffs are not rendered by default.
Oops, something went wrong.
Large diffs are not rendered by default.
Oops, something went wrong.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -7,7 +7,7 @@ | |
</code></pre></div> <table> <thead> <tr> <th>Property</th> <th>Description</th> <th>Required</th> </tr> </thead> <tbody> <tr> <td>Needles</td> <td>Expressions whose existence will be checked</td> <td>Yes</td> </tr> <tr> <td>Haystack</td> <td>Subquery to check</td> <td>Yes</td> </tr> </tbody> </table> <h3 id=set-predicates>Set predicates<a class=headerlink href=#set-predicates title="Permanent link">¶</a></h3> <p>A set predicate is a predicate over a set of rows in the form of a subquery.</p> <p><code>EXISTS</code> and <code>UNIQUE</code> are common SQL spellings of these kinds of predicates.</p> <table> <thead> <tr> <th>Property</th> <th>Description</th> <th>Required</th> </tr> </thead> <tbody> <tr> <td>Operation</td> <td>The operation to perform over the set</td> <td>Yes</td> </tr> <tr> <td>Tuples</td> <td>Set of tuples to check using the operation</td> <td>Yes</td> </tr> </tbody> </table> <h3 id=set-comparisons>Set comparisons<a class=headerlink href=#set-comparisons title="Permanent link">¶</a></h3> <p>A set comparison subquery is a subquery comparison using <code>ANY</code> or <code>ALL</code> operations.</p> <h4 id=examples_1>Examples<a class=headerlink href=#examples_1 title="Permanent link">¶</a></h4> <div class=highlight><pre><span></span><code><span class=k>SELECT</span><span class=w> </span><span class=o>*</span> | ||
<span class=k>FROM</span><span class=w> </span><span class=n>t1</span> | ||
<span class=k>WHERE</span><span class=w> </span><span class=n>x</span><span class=w> </span><span class=o><</span><span class=w> </span><span class=k>ANY</span><span class=p>(</span><span class=k>SELECT</span><span class=w> </span><span class=n>y</span><span class=w> </span><span class=k>from</span><span class=w> </span><span class=n>t2</span><span class=p>)</span> | ||
</code></pre></div> <table> <thead> <tr> <th>Property</th> <th>Description</th> <th>Required</th> </tr> </thead> <tbody> <tr> <td>Reduction operation</td> <td>The kind of reduction to use over the subquery</td> <td>Yes</td> </tr> <tr> <td>Comparison operation</td> <td>The kind of comparison operation to use</td> <td>Yes</td> </tr> <tr> <td>Expression</td> <td>Left-hand side expression to check</td> <td>Yes</td> </tr> <tr> <td>Subquery</td> <td>Subquery to check</td> <td>Yes</td> </tr> </tbody> </table> <div class=tabbed-set data-tabs=1:1><input checked=checked id=__tabbed_1_1 name=__tabbed_1 type=radio><label for=__tabbed_1_1>Protobuf Representation</label><div class=tabbed-content> <div class=highlight><pre><span></span><code><span class=kd>message</span><span class=w> </span><span class=nc>Subquery</span><span class=w> </span><span class=p>{</span> | ||
</code></pre></div> <table> <thead> <tr> <th>Property</th> <th>Description</th> <th>Required</th> </tr> </thead> <tbody> <tr> <td>Reduction operation</td> <td>The kind of reduction to use over the subquery</td> <td>Yes</td> </tr> <tr> <td>Comparison operation</td> <td>The kind of comparison operation to use</td> <td>Yes</td> </tr> <tr> <td>Expression</td> <td>Left-hand side expression to check</td> <td>Yes</td> </tr> <tr> <td>Subquery</td> <td>Subquery to check</td> <td>Yes</td> </tr> </tbody> </table> <div class="tabbed-set tabbed-alternate" data-tabs=1:1><input checked=checked id=__tabbed_1_1 name=__tabbed_1 type=radio><div class=tabbed-labels><label for=__tabbed_1_1>Protobuf Representation</label></div> <div class=tabbed-content> <div class=tabbed-block> <div class=highlight><pre><span></span><code><span class=kd>message</span><span class=w> </span><span class=nc>Subquery</span><span class=w> </span><span class=p>{</span> | ||
<span class=w> </span><span class=k>oneof</span><span class=w> </span><span class=n>subquery_type</span><span class=w> </span><span class=p>{</span> | ||
<span class=w> </span><span class=c1>// Scalar subquery</span> | ||
<span class=w> </span><span class=n>Scalar</span><span class=w> </span><span class=na>scalar</span><span class=w> </span><span class=o>=</span><span class=w> </span><span class=mi>1</span><span class=p>;</span> | ||
|
@@ -83,7 +83,7 @@ | |
<span class=w> </span><span class=n>Rel</span><span class=w> </span><span class=na>right</span><span class=w> </span><span class=o>=</span><span class=w> </span><span class=mi>4</span><span class=p>;</span> | ||
<span class=w> </span><span class=p>}</span> | ||
<span class=p>}</span> | ||
</code></pre></div> </div> </div> </article> </div> </div> </main> <!-- | ||
</code></pre></div> </div> </div> </div> </article> </div> </div> </main> <!-- | ||
Copyright (c) 2016-2020 Martin Donath <[email protected]> | ||
Permission is hereby granted, free of charge, to any person obtaining a copy | ||
|
Large diffs are not rendered by default.
Oops, something went wrong.
Large diffs are not rendered by default.
Oops, something went wrong.
Large diffs are not rendered by default.
Oops, something went wrong.
Binary file not shown.
Large diffs are not rendered by default.
Oops, something went wrong.
Large diffs are not rendered by default.
Oops, something went wrong.