error: at least one column must be specified for the table.
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
06-15-2023 02:28 AM
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
06-15-2023 04:07 AM
Can you post the code thst caused the error and a description of what youre trying to do?
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
06-15-2023 04:22 AM
Sorry for not posting the code. We have written pysql code step wise (like stored proc). It has all the Source, target and temporary tables with join conditions. We are executing the notebook via workflow jobs with different years passing as parameters. The error is coming randomly. If we are re-running the failure job with same year, it is successfully completing.
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
06-15-2023 04:29 AM
Yeah no way of knowing without looking at the code but i use dataframes until i have to do specific joins/upserts. It sounds like theres an extra one that doesnt exist yet therefore no columns are being grabbed/given. Make sure everything youre passing is s valid table. Im guessing youre dynamically referring to columns in all the tables to update them each time. Maybe break it up so you can print each step and check whats being passed esch time.

- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
06-15-2023 08:27 PM
Hi @anand R
Hope everything is going great.
Just wanted to check in if you were able to resolve your issue. If yes, would you be happy to mark an answer as best so that other members can find the solution more quickly? If not, please tell us so we can help you.
Cheers!

