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: 

Recursive view error while using spark 3.2.0 version

manasa
Contributor

This happens while creating temp view using below code block

latest_data.createOrReplaceGlobalTempView("e_test")

ideally this command should replace the view if e_test already exists instead it is throwing

"Recursive view `global_temp`.`e_test` detected (cycle: `global_temp`.`e_test` -> `global_temp`.`e_test`)" error..Can anyone help me with this

1 ACCEPTED SOLUTION

Accepted Solutions

shan_chandra
Databricks Employee
Databricks Employee

Hi, @Manasa​, could you please check SPARK-38318 and use Spark 3.1.2, Spark 3.2.2, or Spark 3.3.0 to allow cyclic reference?

View solution in original post

7 REPLIES 7

-werners-
Esteemed Contributor III

does it work when you don't use a global view?

Nope.Same error

User16763506477
Contributor III

Hi @Manasa Kalluri​  Is "latest_data" referring to "e_test".

How latest_data is created ?

Hi @Gaurav Rupnar​ ,

latest_data=spark.read.format('csv').option("header","true").option("multiLine","true").load(file_path)

latest_data is a simple dataframe of a small csv file

shan_chandra
Databricks Employee
Databricks Employee

Hi, @Manasa​, could you please check SPARK-38318 and use Spark 3.1.2, Spark 3.2.2, or Spark 3.3.0 to allow cyclic reference?

Hi @Manasa Kalluri​ ,

Just a friendly follow-up. Do you still need help with this issue?

No, it was resolved.Thanks!

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