Skip to content

Commit

Permalink
Merge pull request #66 from TeoMeWhy/fix/datasus
Browse files Browse the repository at this point in the history
fix table_nae as argument in function
  • Loading branch information
TeoCalvo authored Aug 21, 2023
2 parents c4e1d1c + 143dcba commit d622386
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/02.bronze/datasus/ingestao.py
Original file line number Diff line number Diff line change
Expand Up @@ -29,7 +29,7 @@
# COMMAND ----------

# DBTITLE 1,Criação da tabela
if not dbtools.table_exists(spark, database_name, table):
if not dbtools.table_exists(spark, database_name, table_name):
df_null = spark.createDataFrame(data=[], schema=ingestao.schema)
ingestao.save_full(df_null)
dbutils.fs.rm(ingestao.checkpoint_path, True)
Expand Down

0 comments on commit d622386

Please sign in to comment.