-
Notifications
You must be signed in to change notification settings - Fork 2.5k
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
[pkg/ottl] Add rename function #31769
Conversation
Add alternative function to avoid double step rename(map, field, target_field, [Optional] ignore_missing = true, [Optional] conflict_strategy = replace)
@aleksmaus please open an issue for us to discuss the problem this PR solves. |
Thank you for the prompt response. Will open an issue over the weekend. Need to think more about all the use cases, think I might be not covering one or two with the current implementation. |
Reverted the latest changes back to to the initial rename
The
This combines what previously required two calls of How the
|
This PR was marked stale due to lack of activity. It will be closed in 14 days. |
Closed as inactive. Feel free to reopen if this PR is still being worked on. |
Description:
Add alternative function to avoid double step rename(map, field, target_field, [Optional] ignore_missing = true, [Optional] conflict_strategy = upsert)
Related to [pkg/ottl] Add rename function
Documentation:
The
rename
function documentation block in readme.Testing:
Unit tests.
Manual testing with transform, example: