[KED-2667] Pycharm Kedro Catalog Schema error.
See original GitHub issueSchema validation: Incompatible types. Required: object. Actual: string.
Context
I’m in the first steps after finish the configuration of the Schema for the Kedro Catalog in Pycharm 2021.1.1.
Steps to Reproduce
- having a valid file in the
./conf/local/credentials.yml - having a
catalog.ymlwith code like:
addresses: type: pandas.SQLTableDataSet table_name: addresses credentials: rdsEnjoy layer: raw ```
Expected Result
the rdsEnjoy should not be picked as an incompatible type
Actual Result
the rdsEnjoy resalts as an error with Schema validation: Incompatible types. Required: object. Actual: string.
-- If you received an error, place it here.
-- Separate them if you have more than one.
Your Environment
Include as many relevant details about the environment in which you experienced the bug:
- Kedro version used (
pip show kedroorkedro -V): - Python version used (
python -V): - Operating system and version:
Issue Analytics
- State:
- Created 2 years ago
- Comments:9 (5 by maintainers)
Top Results From Across the Web
[KED-2667] Pycharm Kedro Catalog Schema error. · Issue #771
Schema validation: Incompatible types. Required: object. Actual: string. Context I'm in the first steps after finish the configuration of ...
Read more >Set up PyCharm — Kedro 0.18.4 documentation
You can enable the Kedro catalog validation schema in your PyCharm IDE to enable real-time validation, autocompletion and see information about the different ......
Read more >How to setup PyCharm with Kedro - Writing Data ... - YouTube
Data Engineering is a tough job, and it can be made tougher by complex, difficult to understand data pipelines. In this series, we...
Read more >
Top Related Medium Post
No results found
Top Related StackOverflow Question
No results found
Troubleshoot Live Code
Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start Free
Top Related Reddit Thread
No results found
Top Related Hackernoon Post
No results found
Top Related Tweet
No results found
Top Related Dev.to Post
No results found
Top Related Hashnode Post
No results found

Yes, I believe this is because I auto-generate the schema from the dataset class signatures, which defines the credentials as a dictionary, but in the YAML itself, it should be a string that Kedro then looks up in credentials.yml and turns into a dictionary. I’ll tweak the schema-generation script and push a fix when I have some time. Feel free to assign this to me!
This issue has been automatically marked as stale because it has not had recent activity. It will be closed if no further activity occurs. Thank you for your contributions.