-
Notifications
You must be signed in to change notification settings - Fork 190
[FEATURE] Enhance PPL rename command to support wildcards #4008
Copy link
Copy link
Closed
Labels
PPLPiped processing languagePiped processing languageenhancementNew feature or requestNew feature or requestv3.3.0
Description
Enhance Rename Command with Wildcard Support in PPL
Description
This RFC proposes enhancing the existing rename command in PPL to add support for wildcards
Usage Examples
Rename fields with "old" prefix to "new":
... | rename old_* AS new_*
old_name→new_nameold_value→new_value
Add prefix to all fields:
... | rename * AS user_*
id→user_idemail→user_emailstatus→user_status
Remove suffix from field names:
... | rename *_field AS *
name_field→namedate_field→date
Implementation Details
- Leverage existing grammar support for wildcard expressions (
wcFieldExpression) in rename clauses - Extend rename processing logic to handle wildcard patterns during analysis phase
- Maintain backward compatibility with existing literal field renaming
- Source field and target field must have same number of wildcards
Reactions are currently unavailable
Metadata
Metadata
Assignees
Labels
PPLPiped processing languagePiped processing languageenhancementNew feature or requestNew feature or requestv3.3.0
Type
Projects
Status
New
Status
Done