A new function to handle multiple fields in a single statement.
Expected Behavior
keep_fields(list of fields to keep, remove the rest)
remove_fields(list of fields to remove, keep the rest)
remove_fields would just be the plural version of remove_field and is just an extension of already existing behavior.
keep_fields is a reverse version of remove_fields. When the goal is to persist a finite set of fields, this function would drop any fields not in the list.
Current Behavior
There is a remove_field (singular) but requires a lot of extra processing and repetition for a big list of fields, plus it will only work as new fields are discovered that need to be removed.
Possible Solution
Call the function with a list/array of fields so removing them in bulk can be performance optimized.
Steps to Reproduce (for bugs)
N/A
Context
Trying to make the pipeline processing even better :)
A new function to handle multiple fields in a single statement.
Expected Behavior
keep_fields(list of fields to keep, remove the rest) remove_fields(list of fields to remove, keep the rest)
remove_fields would just be the plural version of remove_field and is just an extension of already existing behavior.
keep_fields is a reverse version of remove_fields. When the goal is to persist a finite set of fields, this function would drop any fields not in the list.
Current Behavior
There is a remove_field (singular) but requires a lot of extra processing and repetition for a big list of fields, plus it will only work as new fields are discovered that need to be removed.
Possible Solution
Call the function with a list/array of fields so removing them in bulk can be performance optimized.
Steps to Reproduce (for bugs)
N/A
Context
Trying to make the pipeline processing even better :)
Your Environment
N/A