cancel
Showing results forย 
Search instead forย 
Did you mean:ย 
Data Engineering
cancel
Showing results forย 
Search instead forย 
Did you mean:ย 

error: at least one column must be specified for the table.

DB_795688_DB_44
New Contributor II

error: at least one column must be specified for the table.

4 REPLIES 4

etsyal1e2r3
Honored Contributor

Can you post the code thst caused the error and a description of what youre trying to do?

DB_795688_DB_44
New Contributor II

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.

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.

Anonymous
Not applicable

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!

Welcome to Databricks Community: Lets learn, network and celebrate together

Join our fast-growing data practitioner and expert community of 80K+ members, ready to discover, help and collaborate together while making meaningful connections. 

Click here to register and join today! 

Engage in exciting technical discussions, join a group with your peers and meet our Featured Members.