How to define DLT table with cyclic reference
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
07-03-2024 02:46 AM
@Dlt.table
def table_A():
return (
dlt.read_stream(...)
)
@dlt.table
def table_join_A_and_C():
df_A = dlt.read_stream(table_A)
df_C = dlt.read_stream(table_C)
return (
....df_A.join(df_C)
)
@dlt.table
def table_C():
return (
dlt.read_stream(table_join_A_and_C).....
)
I got an error when defining DLT like above. Does DLT support cyclic reference?
Thanks in advance.
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
07-07-2024 09:30 PM
Thanks for your reply, I will rethink the approach.
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
07-10-2024 09:59 AM
Hi @hadoan ,
Thank you for reaching out to our community! We're here to help you.
To ensure we provide you with the best support, could you please take a moment to review the response and choose the one that best answers your question? Your feedback not only helps us assist you better but also benefits other community members who may have similar questions in the future.If you found the answer helpful, consider giving it a kudo. If the response fully addresses your question, please mark it as the accepted solution. This will help us close the thread and ensure your question is resolved.
We appreciate your participation and are here to assist you further if you need it!
Thanks,
Rishabh
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
05-07-2025 09:10 PM
Could you please describe best approach here. Thanks