Lee-W commented on code in PR #77646:
URL: https://github.com/apache/airflow/pull/77646#discussion_r4718034395
##########
providers/huggingface/tests/unit/huggingface/operators/test_datasets.py:
##########
@@ -333,6 +365,7 @@ def __getitem__(self, asset):
push_to_hub.assert_called_once()
kwargs = push_to_hub.call_args.kwargs
assert reference["fingerprint"] in kwargs["commit_message"]
+ assert kwargs.get("embed_external_files") is False
Review Comment:
Could we add a a case with `push_kwargs={"embed_external_files": True}`?
##########
providers/huggingface/docs/changelog.rst:
##########
@@ -27,6 +27,13 @@
Changelog
---------
+.. note::
+ ``StreamDatasetOperator`` now passes ``embed_external_files=False`` to
``push_to_hub`` when the source
+ is a Hub repository. Rows that reference a media file by path are
published with that path, not the
+ file's bytes. With Datasets 5.0 and 5.1 this includes a Hub image folder,
which those versions stream
Review Comment:
Could we link this `Datasets` to the official doc or provdie the full path
of it so that people won't misunderstand it with the `Dataset` concept in
Airflow core (usually people won't but a link can improve it)
--
This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.
To unsubscribe, e-mail: [email protected]
For queries about this service, please contact Infrastructure at:
[email protected]