Skip to content

Implement Update function (Issue #1000) - #3077

Open
saishparadkar10 wants to merge 1 commit into
microsoft:mainfrom
saishparadkar10:feature/update-function
Open

Implement Update function (Issue #1000)#3077
saishparadkar10 wants to merge 1 commit into
microsoft:mainfrom
saishparadkar10:feature/update-function

Conversation

@saishparadkar10

Copy link
Copy Markdown

This PR implements the Excel-like Update function in Power-Fx, addressing issue #1000.

Changes

  • Created Update.cs to define the Update builtin function metadata and arguments verification.
  • Registered the Update function inside BuiltinFunctionsCore.cs.
  • Added localized string getters and resource values in English for functional validation error messages.
  • Implemented UpdateAsync and UpdateCoreAsync in TableValue and CollectionTableValue to perform record substitution at the core/collection level.
  • Registered UpdateImpl in PowerFxConfigExtensions and implemented interpreter evaluation logic in LibraryMutation.
  • Added comprehensive mutation test coverage under Update_V1Compat.txt to cover basic scenarios, nested parameters coercion check, invalid arguments check, and error states.

- Add Update function builtin metadata registration
- Add localized resources and error strings
- Implement UpdateAsync and UpdateCoreAsync in TableValue and CollectionTableValue
- Register UpdateImpl in PowerFxConfigExtensions and implement logic in LibraryMutation
- Add Update_V1Compat mutation tests
@saishparadkar10
saishparadkar10 requested a review from a team as a code owner July 12, 2026 17:52
@azure-pipelines

Copy link
Copy Markdown
Azure Pipelines:
There may be pipelines that require an authorized user to comment /azp run to run.

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.

1 participant