generated from amazon-archives/__template_Custom
-
Notifications
You must be signed in to change notification settings - Fork 176
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_name
old_value
→new_value
Add prefix to all fields:
... | rename * AS user_*
id
→user_id
email
→user_email
status
→user_status
Remove suffix from field names:
... | rename *_field AS *
name_field
→name
date_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
Metadata
Metadata
Assignees
Labels
PPLPiped processing languagePiped processing languageenhancementNew feature or requestNew feature or requestv3.3.0
Type
Projects
Status
New
Status
Done