Skip to content

Implement Update mutation function#3064

Open
GHX5T-SOL wants to merge 1 commit into
microsoft:mainfrom
GHX5T-SOL:fix-1000-update-function
Open

Implement Update mutation function#3064
GHX5T-SOL wants to merge 1 commit into
microsoft:mainfrom
GHX5T-SOL:fix-1000-update-function

Conversation

@GHX5T-SOL

Copy link
Copy Markdown

Fixes #1000

Summary:

  • adds the interpreter Update mutation function and registers it with mutation functions
  • builds a full replacement record so omitted fields are blanked during replacement
  • adds indexed collection update support for Update(..., ..., ..., "ALL") so each matching row is replaced once
  • adds V1/V1-disabled mutation script coverage and a primary-key all-match regression

Validation:

  • DOTNET_CLI_TELEMETRY_OPTOUT=1 DOTNET_ROOT=/Users/brucewayne/Money-MacMini/.dotnet PATH=/Users/brucewayne/Money-MacMini/.dotnet:$PATH dotnet test src/tests/.Net7.0/Microsoft.PowerFx.Interpreter.Tests/Microsoft.PowerFx.Interpreter.Tests.csproj --filter "FullyQualifiedName~RunMutationTests|FullyQualifiedName~UpdateAllUpdatesEachPrimaryKeyMatchOnce" /p:EnableSourceControlManagerQueries=false --no-restore
    • Passed: 55, Failed: 0, Skipped: 0
    • SourceLink warnings only, because local SCM queries were disabled to avoid Microsoft.Build.Tasks.Git failing on this worktree with Unsupported repository version 1.
  • git diff --check
  • git diff --binary | gitleaks stdin --redact --no-banner
    • no leaks found

@GHX5T-SOL GHX5T-SOL requested a review from a team as a code owner May 19, 2026 20:11
@GHX5T-SOL

Copy link
Copy Markdown
Author

@microsoft-github-policy-service agree [company="{GHX5T-SOL}"]

@GHX5T-SOL

Copy link
Copy Markdown
Author

@microsoft-github-policy-service agree

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.

Update function

1 participant