1. This site uses cookies. By continuing to use this site, you are agreeing to our use of cookies. Learn More.
  2. Anuncie Aqui
    Anuncie aqui você Também: fdantas@4each.com.br

[Python] Add the IF NOT EXISTS clause or REFRESH clause in DataBricks python

Discussão em 'Python' iniciado por Stack, Julho 10, 2025.

  1. Stack

    Stack Membro Participativo


    Cannot create table or view abc because it already exists. Choose a different name, drop or replace the existing object, add the IF NOT EXISTS clause to tolerate pre-existing objects, or add the OR REFRESH clause to refresh the existing streaming table. SQLSTATE: 42P07
    ​

    sdf_ext = spark.sql (
    sql_code_ext
    )
    sdf_ext.write.saveAsTable("abc")

    Continue reading...

Compartilhe esta Página