Skip to content

fix: correct misleading comment on executed_branch None case#92

Merged
drmingdrmer merged 1 commit intodatabendlabs:mainfrom
drmingdrmer:051-fix-txn
Mar 6, 2026
Merged

fix: correct misleading comment on executed_branch None case#92
drmingdrmer merged 1 commit intodatabendlabs:mainfrom
drmingdrmer:051-fix-txn

Conversation

@drmingdrmer
Copy link
Member

Changelog

fix: correct misleading comment on executed_branch None case

The None case can legitimately occur when the condition predicate
evaluates to false and there is no else_then fallback branch.

Co-Authored-By: Claude Opus 4.6 noreply@anthropic.com


  • Bug Fix

The None case can legitimately occur when the condition predicate
evaluates to false and there is no else_then fallback branch.

Co-Authored-By: Claude Opus 4.6 <noreply@anthropic.com>
Copilot AI review requested due to automatic review settings March 6, 2026 10:50
Copy link

Copilot AI left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Pull request overview

This PR corrects an inaccurate comment in the KvTransactionReply -> TxnReply conversion logic to reflect that executed_branch = None is a valid outcome when no branch matches, preserving the legacy “else” mapping.

Changes:

  • Update the comment for the executed_branch: None match arm to describe the legitimate “no match + no else_then fallback” scenario.
  • Clarify that the conversion maps this case to execution_path="else" for backward compatibility.

💡 Add Copilot custom instructions for smarter, more guided reviews. Learn how to get started.

@drmingdrmer drmingdrmer enabled auto-merge March 6, 2026 11:01
@drmingdrmer drmingdrmer disabled auto-merge March 6, 2026 11:01
@drmingdrmer drmingdrmer enabled auto-merge March 6, 2026 11:01
Copy link
Collaborator

@xp-trumpet xp-trumpet left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

@xp-trumpet reviewed 1 file and all commit messages.
Reviewable status: :shipit: complete! all files reviewed, all discussions resolved (waiting on drmingdrmer).

@drmingdrmer drmingdrmer added this pull request to the merge queue Mar 6, 2026
Merged via the queue into databendlabs:main with commit a73487e Mar 6, 2026
7 checks passed
@drmingdrmer drmingdrmer deleted the 051-fix-txn branch March 6, 2026 11:13
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

3 participants