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
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

Join 100K+ Data Experts: Register Now & Grow with Us!

Excited to expand your horizons with us? Click here to Register and begin your journey to success!

Already a member? Login and join your local regional user group! If there isn’t one near you, fill out this form and we’ll create one for you to join!