mirror of https://github.com/apache/kafka.git
KAFKA-12317: Update FK-left-join documentation (#15689)
FK left-join was changed via KIP-962. This PR updates the docs accordingly. Reviewers: Ayoub Omari <ayoubomari1@outlook.fr>, Matthias J. Sax <matthias@confluent.io>
This commit is contained in:
parent
1134520dec
commit
7763243752
|
@ -2542,6 +2542,10 @@ Function<Long, Long> foreignKeyExtractor = (x) -> x;
|
|||
<blockquote>
|
||||
<div>
|
||||
<ul class="simple">
|
||||
<li>
|
||||
Records for which the <code class="docutils literal"><span class="pre">foreignKeyExtractor</span></code> produces <code class="docutils literal"><span class="pre">null</span></code> are ignored and do not trigger a join.
|
||||
If you want to join with <code class="docutils literal"><span class="pre">null</span></code> foreign keys, use a suitable sentinel value to do so (i.e. <code class="docutils literal"><span class="pre">"NULL"</span></code> for a String field, or <code class="docutils literal"><span class="pre">-1</span></code> for an auto-incrementing integer field).
|
||||
</li>
|
||||
<li>Input records with a <code class="docutils
|
||||
literal"><span class="pre">null</span></code>
|
||||
value are interpreted as <em>tombstones</em>
|
||||
|
@ -2601,10 +2605,6 @@ Function<Long, Long> foreignKeyExtractor = (x) -> x;
|
|||
<blockquote>
|
||||
<div>
|
||||
<ul class="simple">
|
||||
<li>
|
||||
Records for which the <code class="docutils literal"><span class="pre">foreignKeyExtractor</span></code> produces <code class="docutils literal"><span class="pre">null</span></code> are ignored and do not trigger a join.
|
||||
If you want to join with <code class="docutils literal"><span class="pre">null</span></code> foreign keys, use a suitable sentinel value to do so (i.e. <code class="docutils literal"><span class="pre">"NULL"</span></code> for a String field, or <code class="docutils literal"><span class="pre">-1</span></code> for an auto-incrementing integer field).
|
||||
</li>
|
||||
<li>Input records with a <code class="docutils
|
||||
literal"><span class="pre">null</span></code>
|
||||
value are interpreted as <em>tombstones</em>
|
||||
|
|
Loading…
Reference in New Issue