cancel
Showing results forย 
Search instead forย 
Did you mean:ย 
Data Engineering
Join discussions on data engineering best practices, architectures, and optimization strategies within the Databricks Community. Exchange insights and solutions with fellow data engineers.
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!

Connect with Databricks Users in Your Area

Join a Regional User Group to connect with local Databricks users. Events will be happening in your city, and you wonโ€™t want to miss the chance to attend and share knowledge.

If there isnโ€™t a group near you, start one and help create a community that brings people together.

Request a New Group