Skip to content

minor: Refactor to avoid repeated code in replace_qualifier#2222

Merged
alamb merged 1 commit intoapache:masterfrom
andygrove:dry-replace-qualifier
Apr 13, 2022
Merged

minor: Refactor to avoid repeated code in replace_qualifier#2222
alamb merged 1 commit intoapache:masterfrom
andygrove:dry-replace-qualifier

Conversation

@andygrove
Copy link
Copy Markdown
Member

Which issue does this PR close?

N/A

Rationale for this change

Reduce code duplication and use existing method

What changes are included in this PR?

Minor refactor of replace_qualifier to call existing DFField::from_qualified method.

Are there any user-facing changes?

No

No

@andygrove andygrove changed the title [TASK] Minor refactor to avoid repeated code in replace_qualifier minor: Refactor to avoid repeated code in replace_qualifier Apr 13, 2022
Copy link
Copy Markdown
Contributor

@alamb alamb left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Thanks @andygrove

f.is_nullable(),
)
})
.map(|f| DFField::from_qualified(qualifier, f.field))
Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

not that it matters, but this also saves a copy of field I think 👍

@alamb alamb merged commit 774b91b into apache:master Apr 13, 2022
@andygrove andygrove deleted the dry-replace-qualifier branch January 27, 2023 18:44
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.

2 participants