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

Code example: How to specify your own parent-child relationship in the import schema? #1589

Closed
dat-a-man opened this issue Jul 13, 2024 · 1 comment · Fixed by #1678
Closed
Assignees

Comments

@dat-a-man
Copy link
Collaborator

Add an example to show how one could modify the import schema to specify which columns should be used to link child and parent tables (instead of the default _dlt_parent_id and _dlt_id

@dat-a-man dat-a-man self-assigned this Jul 13, 2024
@dat-a-man dat-a-man converted this from a draft issue Jul 13, 2024
@dat-a-man dat-a-man moved this from Todo to In Progress in Documentation Jul 13, 2024
@dat-a-man
Copy link
Collaborator Author

After consulting with the team, it's confirmed that it's not possible to modify the import schema and directly push down columns from the parent table to the child table. To achieve this, you need to modify the resource itself. I am adding example in the code examples section to demonstrate how to do this.

@dat-a-man dat-a-man linked a pull request Aug 10, 2024 that will close this issue
@github-project-automation github-project-automation bot moved this from In Progress to Done in Documentation Aug 23, 2024
@github-project-automation github-project-automation bot moved this from In Progress to Done in dlt core library Aug 23, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
Status: Done
Status: Done
Development

Successfully merging a pull request may close this issue.

1 participant