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 while Running a Table

Mirza1
New Contributor

Hi All,

I am trying to run table schema and facing below error.

Error - AnalysisException: org.apache.hadoop.hive.ql.metadata.HiveException: Unable to alter table.
com.databricks.backend.common.rpc.SparkDriverExceptions$SQLExecutionException: org.apache.spark.sql.AnalysisException: org.apache.hadoop.hive.ql.metadata.HiveException: Unable to alter table.

Please suggest me steps to solve the issue.

Thank you.

1 REPLY 1

Ayushi_Suthar
Honored Contributor

Hi @Mirza1 , Greetings! 

Can you please confirm if it is an ADLS gen2 table? If yes then can you please give it a try to run the table schema by setting spark configs for gen2 at the cluster level?  

You can refer to this document to set the spark config at the cluster level: https://learn.microsoft.com/en-us/azure/databricks/connect/storage/azure-storage#--set-spark-propert...

Please let me know if this helps and leave a like if this information is useful, followups are appreciated.
Kudos
Ayushi

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