-
Notifications
You must be signed in to change notification settings - Fork 183
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
YAML Constructor Error when adding import_schema_path
parameter to pipeline
#575
Comments
import/export_schema_path
parameter to pipelineimport_schema_path
parameter to pipeline
Hey @AlbertSusanto, thanks for reporting this! can you provide us with a repo or a code snippet with the most basic setup that produces this error? Then I can have a look and find out what is going on there. |
Sorry for the late reply. This is my code to replicate.
I modified the
Hope this helps, and let me know if the bug does exist or its just my local machine. Thanks! |
Hey @AlbertSusanto, no worries. Does this error also happen if you run the pipeline outside of airflow from your terminal/console? I tried to reproduce this, but the error does not happen for me. For reference, this is my code:
|
we were not able to reproduce the issue |
Background
Hi there!
Following this documentation about adding schema when creating a new pipeline, I found this error.
Problem
Currently i can conclude that this line of code
imported_schema = yaml.safe_load(schema_str)
in thedlt/common/storages/schema_storage.py
is causing the problem when constructing the yaml tag here (!!python/object/apply
). This also support the fact that PyYaml cannot construct the tag usingSafeLoader
as per in this issue. I may be wrong about this but let me know!Steps to reproduce from my device
schemas/export
andschemas/import
in the projectimport_schema_path
andexport_schema_path
parameter to the pipeline functionNote
0.3.8
The text was updated successfully, but these errors were encountered: