Skip to content

Commit fc95eee

Browse files
author
committed
Deployed e1520d7 with MkDocs version: 1.6.1
1 parent 1abe62f commit fc95eee

2 files changed

Lines changed: 7 additions & 3 deletions

File tree

‎repair-plans/index.html‎

Lines changed: 6 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -2834,8 +2834,12 @@ <h2 id="suggest-review-apply">Suggest → review → apply<a class="headerlink"
28342834
everything non-trivial stays <code>pending</code>.</p>
28352835
<h2 id="drift-refusal">Drift refusal<a class="headerlink" href="#drift-refusal" title="Permanent link">&para;</a></h2>
28362836
<p>A plan remembers the frame it was built for (<code>FrameSignature</code>: row count,
2837-
column names+dtypes, content sample). Applying it to different data refuses
2838-
by default:</p>
2837+
column names+dtypes, content sample). The content sample is the <strong>first 512
2838+
rows</strong> (<code>_SIGNATURE_SAMPLE_ROWS</code>), not the whole frame: a change beyond row
2839+
512 that leaves the row count, column names and dtypes intact is <strong>not</strong>
2840+
detected. The fingerprint is deliberately cheap; use it as a guard against
2841+
applying a plan to the wrong data, not as a proof the data is unchanged.
2842+
Applying a plan to different data refuses by default:</p>
28392843
<div class="language-python highlight"><pre><span></span><code><span id="__span-2-1"><a id="__codelineno-2-1" name="__codelineno-2-1" href="#__codelineno-2-1"></a><span class="n">fd</span><span class="o">.</span><span class="n">apply_plan</span><span class="p">(</span><span class="n">other_df</span><span class="p">,</span> <span class="n">rp</span><span class="p">)</span> <span class="c1"># raises fd.PlanDriftError</span>
28402844
</span><span id="__span-2-2"><a id="__codelineno-2-2" name="__codelineno-2-2" href="#__codelineno-2-2"></a><span class="n">fd</span><span class="o">.</span><span class="n">apply_plan</span><span class="p">(</span><span class="n">other_df</span><span class="p">,</span> <span class="n">rp</span><span class="p">,</span> <span class="n">allow_drift</span><span class="o">=</span><span class="kc">True</span><span class="p">)</span> <span class="c1"># applies; stale actions skipped + recorded</span>
28412845
</span></code></pre></div>

‎search/search_index.json‎

Lines changed: 1 addition & 1 deletion
Large diffs are not rendered by default.

0 commit comments

Comments
 (0)