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

Create simple storage writer #826

Merged
merged 19 commits into from
Feb 2, 2024
Merged
Show file tree
Hide file tree
Changes from 3 commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
2 changes: 2 additions & 0 deletions components/write_to_file/fondant_component.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -14,6 +14,8 @@ args:
description: >-
Path to store the dataset, whether it's a local path or a cloud storage bucket,
must be specified. A separate filename will be generated for each partition.
mrchtr marked this conversation as resolved.
Show resolved Hide resolved
If you are using the local runner and export the data to a local directory,
ensure that you mount the path to the directory using the `--extra-volumes` argument.
type: str
format:
description: Format for storing the dataframe can be either csv or parquet.
mrchtr marked this conversation as resolved.
Show resolved Hide resolved
Expand Down
2 changes: 2 additions & 0 deletions examples/sample_pipeline/pipeline.py
Original file line number Diff line number Diff line change
Expand Up @@ -63,3 +63,5 @@ def transform(self, dataframe: pd.DataFrame) -> pd.DataFrame:
produces={"chunk_length": pa.int32()},
arguments={"arg_x": "value_x"},
)

_.write(ref="write_to_file", arguments={"path": "./tmp"})
mrchtr marked this conversation as resolved.
Show resolved Hide resolved
Loading