Skip to content
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

Update inputs and outputs interface to allow returning dict indicating optionality #883

Merged
merged 12 commits into from
Aug 15, 2024

Conversation

gabrielmbmb
Copy link
Member

@gabrielmbmb gabrielmbmb commented Aug 12, 2024

Description

This PR updates the method signature of inputs and outputs to also allow returning a dictionary in which the keys are the name of the columns and the values if they are required or not. This change is required as some Steps have optionals columns (meaning that they return an [] empty list), but the internal logic as it is doesn't allow to use input_mappings and output_mappings with these optional columns.

Copy link

Documentation for this PR has been built. You can view it at: https://distilabel.argilla.io/pr-883/

Copy link

codspeed-hq bot commented Aug 14, 2024

CodSpeed Performance Report

Merging #883 will not alter performance

Comparing input-mappings-optional-columns (ca993ee) with develop (c8df5a9)

Summary

✅ 1 untouched benchmarks

@gabrielmbmb gabrielmbmb requested a review from plaguss August 14, 2024 11:59
@gabrielmbmb gabrielmbmb self-assigned this Aug 14, 2024
@gabrielmbmb gabrielmbmb added the enhancement New feature or request label Aug 14, 2024
@gabrielmbmb gabrielmbmb added this to the 1.4.0 milestone Aug 14, 2024
@gabrielmbmb gabrielmbmb marked this pull request as ready for review August 14, 2024 11:59
Copy link
Contributor

@plaguss plaguss left a comment

Choose a reason for hiding this comment

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

LGTM

@gabrielmbmb gabrielmbmb merged commit 4093699 into develop Aug 15, 2024
7 checks passed
@gabrielmbmb gabrielmbmb deleted the input-mappings-optional-columns branch August 15, 2024 06:00
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
enhancement New feature or request
Projects
Status: Done
Development

Successfully merging this pull request may close these issues.

2 participants