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

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

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!

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!